In my script, I integrate 3 different trades that are executed in different contexts.
The 1st one :
EnterLong();
ExitLong();
does not have any profit/loss exit
The 2nd one :
EnterShort( Convert.ToInt32( MW_QTY_in_use ), "MW" );
SetStopLoss("MW", CalculationMode.Ticks, MW_SL_in_use/TickSize, false );
SetProfitTarget("MW", CalculationMode.Ticks, MW_TP_in_use/TickSize );
ExitShort( Convert.ToInt32( MW_QTY_in_use ), "", "" );
The 3rd one :
EnterLong(Convert.ToInt32( DefaultQuantity ),"ON");
SetStopLoss("ON", CalculationMode.Ticks, ON_StopLoss/TickSize, false );
SetProfitTarget("ON", CalculationMode.Ticks, ON_TakeProfit/TickSize );
ExitLong( Convert.ToInt32( DefaultQuantity ),"ON", "" );
The 1st one may overlap with the 2nd and/or 3rd and the profit/loss exits are applied to it.
How can I configure the exits on a specific entry without any interference?
Kind Regards,
Comment