JayDParticipant
Junior
Am doing a screener where I want to change a parameter depending on the time frame. For example:
if TIMEFRAME(default)=TIMEFRAME(daily) then
x=5
else
x=1
endif
Is there a way to read (return) the default time frame?
Thanks.
GetTimeframe does the job (https://www.prorealcode.com/documentation/gettimeframe/) , but NOT for screeners. It’s availbale for indicators and strategies only, so you’d have to compare the time from one bar to next one with some math.