-
Why did you post your MT4 question in the MT5 Indicators section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time post in the correct place. The moderators will likely move this thread there soon. - Same as any colored line indicator. Look in the CodeBase. If you assign to one color buffer, make the other color buffer EMPTY_VALUE.
HOW CAN I hide CONNECTION lines of plots? (ttt) - MQL4 programming forum 2016.07.09For MT4 I use:
- One buffer has the value, color set to CLR_NONE so not shown on chart, (but in data window and pop up.)
- Two buffers, one color each, with SetIndexLabel(i, NULL) so they don't show in data window.
- Then you need to connect the lines on color change. downBuffer[i]=value[i]; if(downBuffer[i+1]==EMPTY_VALUE) downBuffer[i+1]=value[i].
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
I'm trying to show the moving average in 2 colors.
Blue if the MA is trending up and red if trend is down.
The problem occurs when the trend is changing from up to down or vice versa.
When the trend changes, there is a gap in the MA line.
In other words the MA line is not continuous.
I need some help solving this problem. Thanks.