[U]Step One:[/U]Plot on Graph the following (Change in Price) using 14 periods:
Price Change Between Periods = P2-P1 (P stands for period, and the number identifies which period)
Price Change Between Periods = P3-P2
[U]Step Two:[/U]
Plot on Graph the following (Percentage Change in Price) using 14 periods:
Percentage Change in Price = P3-P2/P2-P1
[U]Step Three:[/U]Plot on Graph the following (Average Rates of Change) using 14 periods:
Percentage Change in Price for P3-P2/P2-P1 plus Percentage Change in Price for P4-P3/P3-P2 plus Percentage in Price for P5-P4/P4-P3 = Total Percentage Change in Price.
Then: Total Percentage Change in Price/Number of Periods = Total Percentage Change in Price/3 = Average Rate of Change
Note: I want this to be done for 14 periods (3 is an example).
[U]Step Four:[/U]
Open and Close Buy Position When:
When the Average Rate of Change in Price is positive 1 (1), and no trades open in currency pair, EA will open a Buy Position.
When the Average Rate of Change in Price falls to zero (0), EA will close the Buy Position.
Open and Close Sell Position When:
When the Average Rate of Change in Price is negative 1 (-1), and no trades open in currency pair, EA will open a Sell Position.
When the Average rate of Change in Price rises to zero (0), EA will close the Sell Position.
[U]Notes:[/U]Parameter Section will give option to EA User to change point of: Opening Position, Closing Position, Number of Periods, etc.
END
Thank you for your help. This should be a relatively simple EA to program. I don’t know the programming languages, and would sincerely appreciate someone that would write and give me this code. Thank you sincerely. I plan to run this on a demo and try many different parameters settings, etc., and see what I come up with. This will be used on the MetaTrader 4 Platform.