TradeScript documentation is not up to date?

I’m going through TradeScript documentation and looks like it is not up to date.
One of the first things I encountered is “ALL_TIME_HIGH” and “ALL_TIME_LOW” vectors which per Pi are undefined.

if you want to check highest high or lowest low values you can use HHV or LLV available in documentation

1 Like

Hey, Is there any debugger for the script? Many times it doesn’t generate a proper error. It just says “Your script generated an error. Error: Scripts generated no trades.”

My script is as below…

Buy

# Yesterday formed Bullish Marubozu
REF(OPEN, 1) < REF(CLOSE, 1)

# variation of 0.1% is acceptable
AND REF(HIGH, 1) <= REF(CLOSE, 1) * 0.001
AND REF(LOW, 1) >= REF(OPEN, 1) * -0.001

# Volitality should be between 1% & 10%
AND (REF(CLOSE, 1) - REF(OPEN, 1) / REF(CLOSE, 1)) * 100 <= 10
AND (REF(CLOSE, 1) - REF(OPEN, 1) / REF(CLOSE, 1)) * 100 >= 1

# Up Trend as Started
AND LAST > REF(CLOSE, 1)

Sell

# Yesterday formed Bearish Marubozu
REF(OPEN, 1) > REF(CLOSE, 1)

# variation of 0.1% is acceptable
AND REF(HIGH, 1) <= REF(CLOSE, 1) * 0.001
AND REF(LOW, 1) >= REF(OPEN, 1) * -0.001

# Volitality should be between 1% & 10%
AND (REF(OEPN, 1) - REF(CLOSE, 1) / REF(OPEN, 1)) * 100 <= 10
AND (REF(OPEN, 1) - REF(CLOSE, 1) / REF(OPEN, 1)) * 100 >= 1

# Down Trend as Started
AND LAST < REF(CLOSE, 1)

Exit Long

LAST <= REF(CLOSE, 1)

Exit Short

LAST >= REF(OPEN, 1)