Questions from Beginners MQL5 MT5 MetaTrader 5 - page 808
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
In the Expert Advisor, when receiving an indicator handle in OnInit() ...
....terminal draws both lines, but I need only the top line.
How to disable drawing of this line? I.e. change its colour to CLR_NONE, or change the line style to DRAW_DONE?
When this advisor (in which an indicator handle is created) works on a NORMAL chart in the TERMINAL - the called indicator is not shown at all on the chart.
When such an EA (in which an indicator handle is created) works in the STRATEGY TESTER in visual mode - the called indicator MUST be displayed on the chart.
Based on the above, why do you need to hide ONE line of the called indicator, if the Expert Advisor is running in the STRATEGY Tester in visual mode?
In the Expert Advisor, when receiving an indicator handle in OnInit() ...
....terminal draws both lines, but I need only the top line.
How to disable drawing of this line? I.e. change its colour to CLR_NONE, or change the line style to DRAW_DONE?
Well because it is a single indicator which has two lines. Use Moving Average with the same parameters as Envelopes to draw only one MA line. Only add Deviation*Point() for the upper line to the MA value and subtract Deviation*Point() for the lower line
When such an EA (in which an indicator handle is created) works on a NORMAL chart in the TERMINAL - then the called indicator is not shown at all on the chart.
When such an Expert Advisor (in which an indicator handle is created) works in the STRATEGY TESTER in visual mode - the called indicator MUST be displayed on the chart.
Now it is clear that the indicator is displayed in the TESTER, I have not thrown the EA on the OVERWHELD chart.
The variant with Deviation*Point() is very good, but only for Envelopes.
Based on the above, why do you need to hide ONE line of the called indicator, if the Expert Advisor is running in the STRATEGY TEST in visual mode?
When testing, I would like to see the upper line of Envelopes with period (e.g.) 14 and the lower line of Envelopes with period (e.g.) 8.
The strategy is a breakout strategy with different periods on Buy and Sell. Periods are defined by optimization. But then the result should be looked at visually.
When testing, I would like to see an upper Envelopes line with a period of (say) 14 and a lower Envelopes line with a period of (say) 8.
The strategy is breakout with different periods for Buy and Sell. Periods are defined by optimization. But then the result should be viewed visually.
Options:
When testing, I would like to see the upper Envelopes line with period (e.g.) 14 and the lower Envelopes line with period (e.g.) 8.
The strategy is a breakout strategy with different periods on Buy and Sell. The periods are defined by optimization. But then the result should be looked at visually.
Options:
Interesting, but I do not understand how to "turn off" the required line. I tried it myself, but it did not work.
Thanks for the ideas.
Two MAs with the right periods.
This option is brilliantly simple, but I'm not looking for the easy way out.
Thank you for your feedback.
This option is brilliantly simple, but I'm not looking for the easy way out.
Thank you for your response.
Then a custom indicator with one line. Vladimir already told you about it.
No, not a problem. Just playing it in my head, no way to install MT5 on my tablet.
I'll get to the PC this weekend and get it done.
Thank you all for the help.