can someone see my error in the code below.... it's unstable and will only show 4 lines instead of 8.... i've seen other indicators that have more than 4 components , so the number of moving averages should not be the issue.... i've replaced parts of the code here and there with ideas from some of the best coders here on the forum but still the last 4 will not plot..... if you plot it and only 2 lines appear, refresh the chart ..... here is a poor reprentation of final product, i had to use 2 indicators in that image instead of 1, to show the idea...... any thoughts......thanks .....h
extern int applied_price=PRICE_CLOSE; //0 Close //1 Open //2 High //3 Low //4 Median //5 Typical //6 Weighted
extern int EMA1Period = 10; extern int EMA2Period = 20; extern int EMA3Period = 33; extern int EMA4Period = 50; extern int EMA5Period=89; extern int EMA6Period=100; extern int EMA7Period=150; extern int EMA8Period=200;
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
can someone see my error in the code below.... it's unstable and will only show 4 lines instead of 8.... i've seen other indicators that have more than 4 components , so the number of moving averages should not be the issue.... i've replaced parts of the code here and there with ideas from some of the best coders here on the forum but still the last 4 will not plot..... if you plot it and only 2 lines appear, refresh the chart ..... here is a poor reprentation of final product, i had to use 2 indicators in that image instead of 1, to show the idea...... any thoughts......thanks .....h