Does that cause to send extra queries to broker (plus, output order/log messages on every tick)?
2) let's say, the solution is to move that inside condition (i.e. in OnExecution) , but i am mostly worried with MoveToBreakEven, because i use :
...
if(MarketPosition == MarketPosition.Long){
if (TicksFromEntry > MoveToBE_Enough_ticks) {
SetStopLoss (........);
}
}
...
Should I use:
...
...
if (TicksFromEntry > MoveToBE_Enough_ticks) {
if(!be_executed) {
SetStopLoss (........);
be_executed=true;
}
}
...
...

Comment