OK, show us what exactly volume of openprice and stoploss.
Roger:
OK, show us what exactly volume of openprice and stoploss.
OK, show us what exactly volume of openprice and stoploss.
Here's the code.
extern double Lots = 0.1;
int SellStopLoss=High[2],
Print("Minimum stoploss level = : ",MarketInfo(Symbol(),MODE_STOPLEVEL));
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,SellStopLoss,Bid-TakeProfit*Point,"BB Trend Chaser",16384,0,Red);
My question is not the error 130, but how does the tester obtain the 20 point minimum stoploss level?
I'm assuming it doesn't negotiate the broker's trading server using the MarketInfo function, so the minimum stoploss level doesn't change in simulation mode?
Wilbur
Are you sure that:
SellStopLoss-Ask>MarketInfo(Symbol(),MODE_STOPLEVEL)*Point?
I asked you about exact numbers. You have to see:
Bid=....
Ask=...
SellStopLoss=....
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,
When an EA is run in Strategy Tester does anyone know where the following code gets its information from?
MarketInfo(Symbol(),MODE_STOPLEVEL)
I've found that the returned value is always 20 points.
The symbol is EURUSDH1. As you can see from the Journal output, the Print operator shows the minimum stoploss level as 20 points.
This is always so regardless of date and bar (see below):
Any help is greatly appreciated.
Wilbur
Journal messages