- Topics: 5
- Replies: 616
- Posts: 621
The High() > V1 needs to be on its own line and assigned a different variable, the TimeSinceSignal() then needs to be wrapped around that.
Additionally, for it to run on multiple time frames but return the same result you need to set a time frame override on a few of the lines.
The final script would look like this:
V1 = HIGHESTHIGH(Day(PERIODAMOUNT=1), BACKTYPE=Days, BARS=365) ;
V2 = HIGH(Day(PERIODAMOUNT=1)) CrossesAbove V1 ;
V3 = TIMESINCESIGNAL(V2, UNIT=Days);
Here's an example of the output...
- This reply was modified 10 months ago by Matthew.