♥ 0 |
Hi, My script finds a specific date and then I am able to know how many bars ago that happen. Then, using getvalue I can retrieve the close of that day which is used later. That works fine in daily charts. I know that in intraday charts I need to use aggregation period to retrieve the value in the right time frame, but that seems to fail with the getvalue function. This is my code: Assuming I have in the variable ElapsedDays the number of dailybars ago that I need, say 75. def MyClose= getvalue(close(period=aggregationperiod.day), ElapsedDays); addlabel(yes,”MyClose =”+ myclose); This only work well in daily charts if I use 15 min charts for example it retrieves the wrong value. Am I wrong? RESOLVED
Marked as spam
|
Please log in to post questions.
Cool, I like it. Thanks for taking the time to come back and post your solution.