Understanding a piece of code
Posted: Thu Dec 23, 2021 5:28 pm
Hello, I'm trying to understand what does this piece of code in ordert to do the same thing in metatrader 4
This piece of code generates the following lines
the red line is exactly equal to the purple one. How this purple line is generated?
Code: Select all
up=src-(Multiplier*atr)
upPlot1 = plot(up, style=plot.style_linebr, linewidth=2, color=color.green)
upPlot2 = plot(up[1], style=plot.style_linebr, linewidth=2, color=color.red)
up1 = nz(up[1],up)
upPlot3 = plot(up1, style=plot.style_linebr, linewidth=2, color=color.purple)
the red line is exactly equal to the purple one. How this purple line is generated?