Hello All,
I’m trying to create an alert that requires conditions to be true on two time frames but I can’t seem to figure out how to make this happen. The alert requires me to choose a time frame for aggregate but then does not let me further define on what time frame these moving averages are. The conditions I’m trying to make are:
- 5EMA < 10EMA (4 Hour)
- RSI(Simple, 9) < 50 (4 Hour)
- Price (Close) < 10EMA (4 Hour)
AND
- 5EMA crosses below 10EMA (15Min)
- RSI(Simple, 9) < 50 (15Min)
- Price (Close) < 5EMA (15Min)
As you can see, I have two duplicates with the moving averages, and am unable to define the time period for the RSI or moving averages on either. Only price will allow me to define a timeframe. So far, the code I’ve managed to come up with in the editor is:
MovAvgExponential(“length” = 5) is less than MovAvgExponential(“length” = 10) and RSI(“length” = 9, “average type” = “SIMPLE”).“RSI” is less than 50 and MovAvgExponential(“length” = 5) crosses below MovAvgExponential(“length” = 10) and RSI(“length” = 9, “average type” = “SIMPLE”).“RSI” is less than 50 and close(“period” = AggregationPeriod.FIFTEEN_MIN) is less than MovAvgExponential(“length” = 5)
Thanks in advance!
-TheProfitcy