// get op as usual...//bla bla blaif(StopLoss>0) sl = SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_SIZE) * (int)round((op+StopLoss)/SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_SIZE));
You have a new point of view, nice! But I do believe that for the Brazil market, it won't change anything, bid and ask are 1 pip far normally. But thanks! I'll try to see if it changes any point gain!
it prints 5.0000000 ?
Thanks for the lesson, it did.
I Tried to change the sl as you said, and keep doing the same error:
Solved, Thanks Code2219 or probably 2319 !
invalid stop , caused too high value input
invalid stop , caused too high value input
My problem was because i was putting a stop between 2 pip, an unreachable value.
What?
My problem was because i was putting a stop between 2 pip, an unreachable value.
you right, invalid stop is an unreachable value.
can be too close or to far.
see below image
SL BUY> use BID
TP BUY> use ASK
you right, invalid stop is an unreachable value.
can be too close or to far.
see below image
SL BUY> use BID
TP BUY> use ASK
But thanks! I'll try to see if it changes any point gain!