Hi,
on a backtest I can see visually when price touches a line and want to open an order but I need to take into account the spread.
Using the snippet of code below could someone tell me where I would insert the spread which I would define earlier as bid-ask.
I think its price+spread but not having much joy
thank you
PG
on a backtest I can see visually when price touches a line and want to open an order but I need to take into account the spread.
Using the snippet of code below could someone tell me where I would insert the spread which I would define earlier as bid-ask.
I think its price+spread but not having much joy
thank you
Inserted Code
ticket=OrdSend(Symbol(),OP_SELLLIMIT,Lots,Price,Slippage,MyStopLoss,MyTakeProfit,OrderStr,MagicNumber,0,Red);
PG