I am looking for programming my own EA MA trader
I would like the EA to allow me to define MA#1 and MA #2 I would like these 2 MA to be definable as
Simple Exponential Smoothed and weighted.
The EA should determine the present position of MA#1 and MA#2
I would like that MA #1 and Ma#2 to trade when they cross. When MA#1 crosses Ma#2 the EA would execute a BUY. When MA #2 Crosses Ma#1 it would execute a SELL to terminate the transaction (the same for the reverse). At the same time I would like the same cross to initiate a swing trade (with a pause delay (=relax) of minutes that I would be able to define). The new initiated trade should not start before MA#1 and MA#2 did not achieve a point difference (divergence) that I would be able to define. I would like to be able to define the maximum spread between the pairs before allow trading. I also would like to able define a general stop loss and trailing stop (naturally on both sides)
This program should be able to trade on any pairs and any time frame.
I also would like the option to define if trades should be performed on Friday, Sunday or Monday
I would like the code to be written in an organized manner and with clear notes
Looking forward to some input, ideas and estimates