You Buy at the Ask, your SL is relative to the Bid. the difference is the spread(wrong open)+spread(right open) spread.
// stop=OrderModify(OrderTicket(),OrderOpenPrice(),(OrderOpenPrice() -(blimit*Point)),0,0,Green); stop=OrderModify(OrderTicket(),OrderOpenPrice(),(OrderClosePrice()-(blimit*Point)),0,0,Green);
WHRoeder:
You Buy at the Ask, your SL is relative to the Bid. the difference is the spread.
You Buy at the Ask, your SL is relative to the Bid. the difference is the spread.
I had considered that, I had in previous iterations changed OrderOpenPrice()+(slimit*Point) to Ask+(slimit*Point) but it made no difference?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, so I'm currently in the middle of writing a code that requires a minimum stop loss allowed, and so have:
and know my brokers minimum limit is 12.5 pips. My buy order comes out with 12.5 pip difference as expected whilst backtesting, but my sell order prints out -18.2 - even accounting for a spread of 2 pips I cant see where this has come from, the slimit pippette counter doesnt move, and am confused as to where discrepancy has come from? Have I missed something obvious?