Counting Multiple Entries

Questions about MultiCharts and user contributed studies.
Posts: 1
Joined: 09 Sep 2011

Counting Multiple Entries

Postby Ecoarsey » 09 Sep 2011

I have a strategy that scales in using multiple entries- the limit order price is adjusted by a factor of the entry count. Is there a simple, robust way to increment this counter whenever the next entry is filled and reset it to 0 when the position is exited?

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

Re: Counting Multiple Entries

Postby Dave Masalov » 12 Sep 2011

Dear Ecoarsey,

You can use CurrentContracts keyword for this purpose. It returns an absolute numerical value, indicating the number of contracts or shares held in the current position.

Return to “MultiCharts”