I have created very simple ProScreener code below to list stocks that have a stochastic above 80 across 3 timeframes – 2, 6 and 18 minutes; and a 50 SMA sloping down in the 18 minute timeframe. When I run the screener, it says that hours would be more appropriate than minutes and just goes back to the proscreener screen. It does the same even when I just have one of the timeframes above. It works fine when the timeframes are 1hour, Daily and Weekly. What am I doing wrong?
PRT Code and error details Below
TIMEFRAME(2Mn)
sK2=Stochastic[5,2](close)
TIMEFRAME(6Mn)
sK6=Stochastic[5,2](close)
Timeframe (18Mn)
sK18=Stochastic[5,2](close)
MA18 = Moving Average (50)
SMA50Slope18 = ma - ma[1]
Screener [sK2 > 80 AND sK6 > 80 AND sK18 >80 AND SMA50Slope18 <0]
Error:
Syntax Error Line 1, Character 12
One of the following characters would be more suitable than “Mn” – Hr (A timeframe of Hour)
In ProScreener, and with the TIMEFRAME keyword, only “usual” timeframes are allowed (the ones from the list in the ProScreener window). That’s why your 2,6 and 18 minutes timeframes are throwing this kind of error.
Thank you for the response. I changed the code to the “standard” minute timeframes as follows, but still get the same error:
PRT Code:
TIMEFRAME(3Mn)
sK3=Stochastic[5,2](close)
TIMEFRAME(10Mn)
sK10=Stochastic[5,2](close)
Timeframe (30Mn)
sK30=Stochastic[5,2](close)
Screener [sK3 > 80 AND sK10 > 80 AND sK30 >80]
Resolved. Didn’t like “Mn”. Used “Minutes” with a space between the standard number and the word “Minutes”. Thank you for assistance.