I can not understand how the setting of stopLoss using the method (true / false). The code I created a region for order management, where should I move the stop to breakeven when price rises to Be1 (BreakEaven), then again I have to move to the Be1 + value, when the price rises to Be2.
For example:
code
#region OrderRouting
private void ManagerOrder ()
if (Position.MarketPosition == MarketPosition.Long )
SetStopLoss(CalculationMode.Percent,0.02);//Initial Stop
if( Be1 && High[0] > (Position.AvgPrice + 2 ))
SetStopLoss("LongFibo°", CalculationMode.Price,Position.AvgPrice,true);//Stop moved to breakeven
if( Be2 && High [0] > (Position.AvgPrice+5))
SetStopLoss("LongFibonacci°", CalculationMode.Price,Position.AvgPrice+ 2);// Stop moved to AvgPrice+2
The stop in this way are activated when the condition occurs, then the next candle, if the condition is no more, the stop is not active. How do I?
Thanks.
Roberto
Please respond by speaking simply because my English is not very good
Comment