Drummond PLDot
Posted: Sun Dec 18, 2016 3:36 pm
Guys
Every time I select "build scrip"t for the following code, it hangs up Wave59 and I have to restart the program.
Any idea what is wrong with the code?
In essence its a 3 Day moving average of H,L,C.
It should print a dot on the current Bar (Bar0)
Thanks in advance for any help...........Ron
#Initialize variables on first bar
if (barnumber==barsback)
{
pldot= 0 ;
hlc_avg= 0 ;
}
[legacycolorvalue = true];
# # PLDot
hlc_avg =( high + low + close ) / 3 ;
pldot = average( hlc_avg, 3 ) ;
plot1=pldot ;
# # PLDotP
hlc_avg =( high + low + close ) / 3 ;
pldot = average( hlc_avg, 3 ) ;
plot1_dot(+1,plot,red,1)=(pldot) ;
Every time I select "build scrip"t for the following code, it hangs up Wave59 and I have to restart the program.
Any idea what is wrong with the code?
In essence its a 3 Day moving average of H,L,C.
It should print a dot on the current Bar (Bar0)
Thanks in advance for any help...........Ron
#Initialize variables on first bar
if (barnumber==barsback)
{
pldot= 0 ;
hlc_avg= 0 ;
}
[legacycolorvalue = true];
# # PLDot
hlc_avg =( high + low + close ) / 3 ;
pldot = average( hlc_avg, 3 ) ;
plot1=pldot ;
# # PLDotP
hlc_avg =( high + low + close ) / 3 ;
pldot = average( hlc_avg, 3 ) ;
plot1_dot(+1,plot,red,1)=(pldot) ;