Action/Logic Rules for EA - based on custom indicator Source code for this EA part of the delivery. Please use comments in the source code. Max open trades per chart is ONE. Trade logic is a simple MA crossover strategy using the provided indicator. Trade is based on the JMA crossing over each other. When the fast JMA crosses below the slow JMA, a SELL trade is executed. When the fast JMA crosses above the slow JMA, a BUY trade is executed. Crosses are confirmed ON CANDLE CLOSE. EA must track realized and unrealized profit. This will be used for the EA Target Profit. EA must track realized and unrealized loss. This will be used for the EA Maximum Loss. EA must work on all timeframes. If Stop Loss is reached during a trade, the trade is closed. The next trade opened cannot open until the next JMA cross. If Take Profit is reached during a trade, the trade is closed. The next trade opened cannot open until the next JMA cross. During an open trade, TP and SL will come from the input values when the EA was started. Input values for both SL and TP should be in Ticks/pips. An EA input used will be called Buy Direction with three drop-down choices: 1) Buys Only, 2)Sells Only and 3) Both. If Buys Only is selected, the EA must only enter BUY trades (the Fast JMA has crossed above the Slow JMA). If Sells Only is selected, the EA must only enter Sell trades (the Fast JMA has crossed below the Slow JMA. If the Both option is selected, the EA can open both BUY trades and SELL trades. Input parameter will be named EA Target Profit. This is the desired cumulative profit that the EA should reach while the EA is running. This value will use an input dollar amount (example, 200 input means the EA will close any open trades and stop the EA if the cumulative profit reaches $200. If EA Target Profit is reached, the EA will close all open trades and the EA should stop running. Input parameter will be named EA Maximum Loss. This is the maximum loss that the EA can reach while the EA is running. This value will use an input dollar amount (example,100 input means the EA will close any open trades and stop the EA if the cumulative loss reaches $100. If EA Maximum loss is reached, the EA will close all open trades and the the EA should stop running. Input Parameters Fast JMA Period/length Fast JMA Phase (-100 to 100) Fast JMA Price (open, close, high,hlc3, ohlc4, weighted) Slow JMA Period/length Slow JMA Phase (-100 to 100) Slow JMA Price (open, close, high,hlc3, ohlc4, weighted) Trade Stop Loss (in ticks/pips) Trade Take Profit (in ticks/pips) EA Target Profit (in dollar amount) EA Maximum Loss (in dollar amount) Buy Direction - Buys Only, Sells Only, Both TESTING Please test in MT5 platform using the US30 and the GBPUSD. Desired timeframe is 5min.