♥ 0 |
Hi, When I plot the value closedLow I count about 16 entries manually. I want a script to count this My code is below and it seems to only count from YTD ie. all the bars from beginning of the year why is that? def closedLow = (high >= close[1] * 1.25) && (((close – low) / (high – low)) <= (25/ 100)); def totalClosedLow = if(isnan(totalClosedLow[1])) then 1 else if (closedLow) then totalClosedLow[1] + 1 else totalClosedLow[1];
Marked as spam
|
Please log in to post questions.