- When MetaTrader 5 Web Terminal is indispensable
- MetaTrader 5 web platform
- MetaTrader 5 for Forex, stocks and futures
my guess is this line needs to be changed to an array? then fill the array with CopyBuffer. See any ma expert advisor on codebase for further info.
double ma = iMA(_Symbol, 0, MA_Period, 0, MODE_SMA, PRICE_CLOSE);
OP has been told that he needs to get the handle in OnInit at least five (5) times. 1 2
I did these modification but the issue persists, Look please:
- www.mql5.com
- You have been told, multiple times to use the CODE button
-
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Code debugging - Developing programs - MetaEditor Help
Error Handling and Logging in MQL5 - MQL5 Articles (2015)
Tracing, Debugging and Structural Analysis of Source Code - MQL5 Articles (2011)
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator - MQL5 Articles (2010)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use