Code a EA in Pine, for Tradingview

Job ID: 35326430

Budget: $30 – $250 USD

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]

SQZMOM_LB

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.
Related categories: Metatrader MQL4