Download MetaTrader 5
To add comments, please log in or register
Are you a good trader? Become a signals provider and make even more money!
Hunt
5
Hunt 2013.11.19 09:53 

Could anyone point out why there is an vertical line appeared on the indicator (instead of start from the very beginning)? where I did wrong and how to fix it? Thank you in advance

The logic is just simply want to add $5 to the MA30 

 

Alain Verleyen
Moderator
29544
Alain Verleyen 2013.11.20 14:04  

Please use SRC button when you post code and not an image.

If you are using 500 in CopyBuffer for ma30buff, don't expect to get more than 500 values in your buffer. There is a vertical line because the value of your indicator buffer before the vertical line is 5. Anyway the code you posted can't work and must give you an array out of range error.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Indicators Lines
Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Indicators Lines
  • www.mql5.com
Standard Constants, Enumerations and Structures / Indicator Constants / Indicators Lines - Documentation on MQL5
/
To add comments, please log in or register