Scale in code for add positions  [SOLVED]

Questions about MultiCharts and user contributed studies.
palmone
Posts: 34
Joined: 24 Apr 2014
Has thanked: 4 times
Been thanked: 2 times

Scale in code for add positions

Postby palmone » 15 Oct 2014

Hi i tried to add position to a position with this code, but it doesn't work

if marketposition=1 and currentcontracts=1 and low<var1 and c>var1 then
buy 1 contract next bar at High +1 point stop ;

Any idea to make it works?
Thanks in advance

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Scale in code for add positions  [SOLVED]

Postby JoshM » 15 Oct 2014

Did you allowed scaling in the Strategy Properties?

palmone
Posts: 34
Joined: 24 Apr 2014
Has thanked: 4 times
Been thanked: 2 times

Re: Scale in code for add positions

Postby palmone » 15 Oct 2014

Thanks JoshM was exactly the reason it doesn't work!Now it's ok


Return to “MultiCharts”