hello,
am sending an order using this statement
where in this case PointFactor =1 , stoplevel =0 , StopLossPips and TakeProfitPips are 0
at stoploss argument i am having a differnce of 10 pips from Ask but still am receiving an error of invalid stops . i would be grateful if any will help me getting rid of this error
thanks
tazz90:
I had a similar problem a couple of days ago and was showed how to fix.
Run this test:
https://www.mql5.com/en/forum/143043/page2#746319
Tell me what the result was, if grey or not.
hello,
am sending an order using this statement
where in this case PointFactor =1 , stoplevel =0 , StopLossPips and TakeProfitPips are 0
at stoploss argument i am having a differnce of 10 pips from Ask but still am receiving an error of invalid stops . i would be grateful if any will help me getting rid of this error
So this means you are trying to set the SL and TP at Ask . . . that isn't going to work, why do you think it would ?
while placing a buy order should i not be using ask as current price for stop loss or take profit ???
That's up to you and your strategy, you said "StopLossPips and TakeProfitPips are 0" Ask-StopLossPips*Point*PointFactor would then equal Ask - 0.0 which is Ask
oh GOD ... typing mistake am sorry its actually 10
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello,
am sending an order using this statement
where in this case PointFactor =1 , stoplevel =0 , StopLossPips and TakeProfitPips are 10
at stoploss argument i am having a differnce of 10 pips from Ask but still am receiving an error of invalid stops . i would be grateful if any will help me getting rid of this error
thanks