Hi,
...
Can it be that the stopLevel for my demo-account (FXCM-MT5Demo01) is set to 0 on purpose (to ensure better expirience for the trader or so) ? Or am i doing something wrong ?
Greetings,
SYMBOL_TRADE_STOPS_LEVEL is set by broker and can be 0. It is up to you to adpat your code to manage this fact.
This may help you.
Hi,
I got some troubles calculating the StopLevel - here is my code:
double currPrice = SymbolInfoDouble(_Symbol,SYMBOL_ASK);
double point = SymbolInfoDouble(_Symbol,SYMBOL_POINT);
double stopLevel = SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL) * point;
double stopPrice = currPrice + stopLevel;
I don't think there is an error in the code (taken from Andrew R. Youngs MQL5 Book).
Can it be that the stopLevel for my demo-account (FXCM-MT5Demo01) is set to 0 on purpose (to ensure better expirience for the trader or so) ? Or am i doing something wrong ?
Greetings,
STOPS_LEVEL != your chosen StopLoss, it governs where your Stop Loss can be but does not determine it.
This may help, it was written for MT4 but I think it also applies to MT5: Requirements and Limitations in Making Trades
- book.mql4.com
SYMBOL_TRADE_STOPS_LEVEL is set by broker and can be 0. It is up to you to adpat your code to manage this fact.
This may help you.
Many thanks - that helps me.
@RaptorUK: I know that the STOPS_LEVEL does not determine the stoploss but sets the minimal difference to the Open-Price.
Thanks anyways :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I got some troubles calculating the StopLevel - here is my code:
double currPrice = SymbolInfoDouble(_Symbol,SYMBOL_ASK);
double point = SymbolInfoDouble(_Symbol,SYMBOL_POINT);
double stopLevel = SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL) * point;
double stopPrice = currPrice + stopLevel;
I don't think there is an error in the code (taken from Andrew R. Youngs MQL5 Book).
Can it be that the stopLevel for my demo-account (FXCM-MT5Demo01) is set to 0 on purpose (to ensure better expirience for the trader or so) ? Or am i doing something wrong ?
Greetings,