I need an EA coded in the Pine format/language used by Tradingview.com.
This EA uses these Tradingview indicators, on a 15-minute chart, for FOREX pairs:
SMMAAnalyses 7 20
TDFI v2 [wm]
The EA will do the following:
1. EA signals/initiates BUY if:
SMMAAnalyses signals buy, and
TDFI baseline is above the neutral channel, and
SQZMOM_LB is neutral or above.
2. EA signals/initiates SELL if:
SMMAAnalyses signals sell, and
TDFI baseline is below the neutral channel, and
SQZMOM_LB is neutral or below.
3. EA signals/initiates CLOSE TRADE if:
TDFI enters neutral and remains there for 2 complete periods after entry.