hi
im attempting to code a very simple showme study in tradestation, all im trying to do is find the highest high within a range of data as that data progresses, so far i have:
{if the high is greater than 0 then the high becomes the new myhi, if on the next bar the high is > myhi then that high becomes the new myhi, and so on etc}
vars: myhi(0);
if high > myhi then myhi = high;
plot1 (myhi,"myhi");
however this gives me the highs of several bars, i just want the actaul highest bar-what am i doing wrong?
thanks
im attempting to code a very simple showme study in tradestation, all im trying to do is find the highest high within a range of data as that data progresses, so far i have:
{if the high is greater than 0 then the high becomes the new myhi, if on the next bar the high is > myhi then that high becomes the new myhi, and so on etc}
vars: myhi(0);
if high > myhi then myhi = high;
plot1 (myhi,"myhi");
however this gives me the highs of several bars, i just want the actaul highest bar-what am i doing wrong?
thanks