Termos de Referência
I need an ea written
it uses two moving averages the Timing_Fast_Ma and the Timing_Slow_Ma
it uses another 2 moving averages has a filter off the larger time frame
Trend_Fast_Ma and Trend_Slow_Ma
I want all of the settings on both sets of moving averages to be set up has externals so that I can modify them.
the shift that changes how the indicator is drew on the chart will be named My_Chart_Shift
the shift that chooses which Bar to look at when trading will be My_Bar_Shift.
I will also have the option to disable the Trend Ma's and use only the timing Ma's
The Ea will look at the account at the open of every new Bar check for open trades.
it will close any open trades using the close by ticket function.
then if the Fast_Timing_Ma is < the Sloe_Timing_Ma it will take the sell order.
If Trend Ea is true then it will check the larger time Frame to make sure the Fast_Trend_Ma is also <the Slow_trend_Ma. If it it will take the sell position. If not it will not take a trade
at every open of a new candle it will close any open positions and repeat the process
when the Fast_Timing _Ma is >The Slow_Timing_Ma it will close all positions and buy.
it will aslo check the Trend_Ma to see if the Fast_Tend_Ma is >the Slow_Trend_Ma (only if Trend_Ma==True)
I will need the stop oss has an external fot me to set
My Lots_Size will need to be calculated has follows
I will need an external number to set
Using 40 has an example it will after closing all orders take my account balance divide it by 40 the for every 40 dollars in the account write 0.01
for example if my account balance is 400 it would write 0.10 if my account balance is 4000 it will write 1.00
this ea mus check to see if it is a 4 or 5 digit broker and check the point placing placing
I need to be able to change the values of the Ma'S so every thing should reflect on the externsals what they do