Reply

Can a strategy result metric like this be added to the codebase?

3 replies

MuSa

Subscriber, bbp_participant, sq-ultimate, 20 replies.

Visit profile

1 year ago #279403

I need a strategy result metric to get “max ticket holding on time” or “max ticket time in trade”.

Just like the pic.

Since I don’t know java,wonder if the moderators can add this metric on codabase or send me the code.

Attachments:
You must be logged in to view attached files.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #279588

Hi,

you can use this ´ script that returns Max # Bars in Trade as a databank column download MaxBarsInTrade.java (zipped)

To install copy into \user\extend\Snippets\SQ\Columns\Databanks

Restart SQX

If you want some more scripts the ‘time’ version you can request some coding here https://strategyquant.com/codebase/request-coding/

Attachments:
You must be logged in to view attached files.

0

MuSa

Subscriber, bbp_participant, sq-ultimate, 20 replies.

Visit profile

1 year ago #279595

Hi, you can use the attached script that returns Max # Bars in Trade as a databank column. To install copy into \user\extend\Snippets\SQ\Columns\Databanks Restart SQX If you want some more scripts the ‘time’ version you can request some coding here https://strategyquant.com/codebase/request-coding/

hi, where is the file, only png?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #279602

Apologize. The link is added now into my previous post

0

Viewing 3 replies - 1 through 3 (of 3 total)