Now the next step was to use the 15min 5ma along with my enterLong strategy.
I was able to code this but there seems to be an issue.
For the 5-minute chart conditioins i need to have the last 2 candles plus the current 5-minute candle low to be >= the 5-minute sma.
For the 15-minute chart condition, I need to have at least the current candle low to be >= the 15-minute 5ma.
However, it will only trigger the long if all the 15-minute candle lows are >= the 15-minute sma within the whole condition of the 5-minute.
I need it to trigger as long as the current 15-minute low >= the 15-sma regardless if the previous 15-minute low is not greater than the previous 15-minute sma while it is still calculating the 5-minute condition.
This may sound confusing so I added some images. Hope this helps.

Comment