Hi, I need some help in creating a screener with the following criterias:
Criteria1: Close in the lowest 10% of todays range (high-low)
Criteria2: RSI < 10
Then I would like to Back Test this strategi with:
BUY: when Criteria 1 and Criteria2
Criteria3: RSI >70
SELL when Criteria3
How do I do?
Many thanks in advance!
Magnus
There you go:
// Screener
//
c1 = close <= (Dlow(0) + ((Dhigh(0) - Dlow(0) * 0.1)) //close <= 10% of today's range
c2 = rsi[14](close) < 10
SCREENER[c1 AND c3]
// Strategy
//
c1 = close <= (Dlow(0) + ((Dhigh(0) - Dlow(0) * 0.1)) //close <= 10% of today's range
c2 = rsi[14](close) < 10
c3 = rsi[14](close) > 70
IF c1 AND c2 AND Not OnMarket THEN
BUY 1 Contract at Market
ENDIF
IF c3 AND LongOnMarket THEN
SELL AT Market
ENDIF
Thank you so much 🙂
This has spared me a lot of gray hair and frustration.
Rgds, Magnus
Sorry, my fault, line 5 of the screener should read (c2, not c3):
SCREENER[c1 AND c2]