In the Conditions and Actions box...
In the "Do the Following Section"
I have...
Variable0=(ATR(20)(0))*(1+200)
That breaks down to mean a 20 period ATR for the current bar with a "percent" offset of 200. I'm setting a variable here so I can set that variable as my stop loss amount in the StopLoss section of the strategy wizard.
In the "Stop Loss and Profit Targets" section I have
SetStopLoss("LongEntry",CalculationMode. Ticks, Variable0, false)
That means set a stop loss for the entry signal called "LongEntry". Set it Varible0 ticks away from the entry (Not simulated)
It seems like it sets my stoploss to my entry amount, so I did something wrong with the ATR part.
WHat do you think?
Comment