I have problems understanding your code sample for scaling in and out of a position
http://www.ninjatrader.com/support/forum/showthread.php?t=3751
I try to code something quite simple like:
If SMA 0 > SMA 1 add 100 to position.
If SMA 0 < SMA 1 subtract 100 from position.
The strategy should do this five times. The position size would float from -500 to +500.
With the strategy builder I can create multiple entries, but the total position reverse one the condition change from long to short.
Could you be so kind and provide a code sample for this scaling in an out system?
Thank you.
Comment