MA Crossover EA Modification Request
To great coders in this forum, please help me add these functions to the attached crossover EA to reduce number of trades it takes at crossovers.
It currently takes order on each crossover and close at opposite crossover and at the same time instantly take new order in direction of the new crossover.
I want to add a filter so that it only buy when crossover occurs above the moving average indicated in input.
For example;
1. Buy when 2MA crossover 5MA from down up when 5MA is above 20MA.
2. Sell when 2MA crossover 5MA from up down when 5MA is below 20MA.
Please Note:
It will continue to take new trade in same direction every time the conditions are met.
I want to be able to change the Moving Average method, price and shift for each of the 3 moving averages.
I appreciate you.
Thanks.
To great coders in this forum, please help me add these functions to the attached crossover EA to reduce number of trades it takes at crossovers.
It currently takes order on each crossover and close at opposite crossover and at the same time instantly take new order in direction of the new crossover.
I want to add a filter so that it only buy when crossover occurs above the moving average indicated in input.
For example;
1. Buy when 2MA crossover 5MA from down up when 5MA is above 20MA.
2. Sell when 2MA crossover 5MA from up down when 5MA is below 20MA.
Please Note:
It will continue to take new trade in same direction every time the conditions are met.
I want to be able to change the Moving Average method, price and shift for each of the 3 moving averages.
I appreciate you.
Thanks.
Attached File(s)