convert the code to EA in Metatrader5 with same function and indicator INDICATOR NAME ON TRADINGVIEW : Adabtive Autonomous Recursive Moving Average devloped by Alexgrover the EA is simple there is 2 colour in the indicator blue and red open buy when line in the indicator is blue and sell when its red when its switching from red to blue it close the the sell trade and open buy at same time and when it chnge from blue to red it close the buy trade and open sell at same time another option in parameters called extra trade open : and open extra trade after : for example i set in extra trade open (4) and in open extra trade after is (5) so the indicator is now blue and it open buy as normal and after (5) candel it open another buy and next candel anothe buy so it open (4) trade because i set that in parameters and the same for sell --------------- ADD ARROW TO THE ENTRY IF POSSIBLE -- stop loss , take profit , trsiling stop, trailing start , max spread , lot for the firts trade and another option for lot for exrta trade . ... and same indicator setting in tradingview in EA too thanks