is there anyone who could lend me a hand on this?
what i am trying to do here is to create a price channel which plot the highest of bar-high(1..5) on bar(0), and only on the current/last day.
at this stage, i am still trying to get the numbers right before putting it on the chart. how unfortunately, i have trouble using&understanding the functions, hhv() & highest(). and i have used 'if (bar_cur >= -5)' & 'if (bar_cur>-2)' to limit the testing range in the efs, without having my esignal crash (i crashed es earlier while testing this).
btw, i can't seem to be able to explain it to myself, why would the formula output looks different, if i add the 'debugPrintln();' at where i indicated. and i can't export/copy+paste the output result in order to show you in this post. in case, anyone who could lend a hand, please try the efs with/out the indicated 'debugPrintln();' line.
thx.
what i am trying to do here is to create a price channel which plot the highest of bar-high(1..5) on bar(0), and only on the current/last day.
at this stage, i am still trying to get the numbers right before putting it on the chart. how unfortunately, i have trouble using&understanding the functions, hhv() & highest(). and i have used 'if (bar_cur >= -5)' & 'if (bar_cur>-2)' to limit the testing range in the efs, without having my esignal crash (i crashed es earlier while testing this).
btw, i can't seem to be able to explain it to myself, why would the formula output looks different, if i add the 'debugPrintln();' at where i indicated. and i can't export/copy+paste the output result in order to show you in this post. in case, anyone who could lend a hand, please try the efs with/out the indicated 'debugPrintln();' line.
thx.
Comment