I would like to inquire about an issue I am encountering while attempting to retrieve the correct trade stops levels for a given symbol. Despite my efforts, the output from my code does not align with the expected symbol properties. To facilitate a comprehensive understanding of the problem, I have provided a quick overview, including screenshots, a code snippet, and relevant logs. Any guidance on how I can accurately obtain the appropriate stop loss levels for the symbol in question?
- Indicator long Response Time ( seems to be due to symbol disability or closeness)
- [Invalid Stops]- Print("Stop Level is: ", stops_level); returning 0
- How to code?
You were doing it correctly before in your previous code, so why are you now doing it incorrectly?
int stops_level=(int)SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL); if(stops_level!=0) { PrintFormat("SYMBOL_TRADE_STOPS_LEVEL=%d: StopLoss and TakeProfit must"+ " not be nearer than %d points from the closing price",stops_level,stops_level); } Print("Stop Level is: ", stops_level);
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