- Topics: 5
- Replies: 421
- Posts: 426
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 1 week ago by Matthew.