♥ 0 |
I am getting an odd behavior when I change the Reference date. Everything works fine through Reference Date = 20170609. But if I set the reference date as 20170610 or later, the red line does not get shifted to the green line on that (reference) date. Don’t know if it is happening for me alone due to some glitch or you can reproduce this error. (Checked couple of stocks and time frames – CE, GOOG and INTC on Daily and 4 hour charts – same behavior). I also have another question regarding your CompoundValue statement def sr = CompoundValue(“historical data” = RS[0], “visible data” = if startDate <= 0 then sr[1] else RS[0]); What makes the red line prior to reference date remain constant and not change with the values of close/close(“SPX”)? (The way I understoodd, your startDate variable is a True/False variable and remains false after the reference date, so sr=sr[1] keeps it constant after that date, but I do not understand how it is kept constant before this date. Will appreciate if you could explain. Please correct me if the way I am reading this is totally wrong. I will not be offended). Thanks Arun
Marked as spam
|
Please log in to post questions.