Recon004: see the holes in the plot lines
| When color changes, both buffers must have the same value so the lines connect. |
if(bbMacd[i] >= bbMacd[i+1]) ExtMapBuffer1[i] = EMPTY_VALUE; //---- if(bbMacd[i] <= bbMacd[i+1]) ExtMapBuffer2[i] = EMPTY_VALUE; //---- if(avg[i] >= avg[i+1]) ExtMapBuffer5[i] = EMPTY_VALUE; //---- if(avg[i] <= avg[i+1]) ExtMapBuffer6[i] = EMPTY_VALUE; | if(bbMacd[i] >= bbMacd[i+1]) ExtMapBuffer1[i] = ExtMapBuffer2[i+1] == EMPTY_VALUE // Change ? ExtMapBuffer2[i] // Join : EMPTY_VALUE; //---- else // Not one must be other. ExtMapBuffer2[i] = ExtMapBuffer1[i+1] == EMPTY_VALUE ? ExtMapBuffer1[i] : EMPTY_VALUE; //---- if(avg[i] >= avg[i+1]) ExtMapBuffer5[i] = ExtMapBuffer6[i+1] == EMPTY_VALUE ? ExtMapBuffer6[i] : EMPTY_VALUE; //---- else ExtMapBuffer6[i] = ExtMapBuffer5[i+1] == EMPTY_VALUE ? ExtMapBuffer5[i] : EMPTY_VALUE; |
WHRoeder:
I don't understand ??
Recon004: see the holes in the plot lines | When color changes, both buffers must have the same value so the lines connect. |
Wonderfull , not only it works perfectly but the more I understood the logic of the new code now .
A huge thank you
ffoorr:
Improved :
Very perfect
Thanks
Try this one recoon004, there is problems with the trigger, corrected in this one ... sorry about that :
Files:
custom_bb_line_b.mq4
6 kb
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
Hello,
I changed a code for a best display : continuous thick line and color change when changing direction. But when rendering , you can see the holes in the plot lines as seen from the attached chart.
I can't find the solution.
The code :
thank you