I am looking for a programmer who could write an EA for the following conditions.
Please let me know whether this is possible.
Any help is greatly appreciated.
6 day Weighted Moving Average strategy (for XAUUSD/ XAGUSD)
Closing Price from Daily closing weights multiply Price equals Products Sum of products/ sum of weigths
5 days ago $TimeDuration 1 X 1.5246 1.5246
4 days ago $TimeDuration 2 X 1.5344 3.0688
3 days ago $TimeDuration 3 X 1.5944 4.7832
2 days ago $TimeDuration 4 X 1.5878 6.3512
1 days ago $TimeDuration 5 X 1.5789 7.8945
0 days ago ($StartDay)$TimeDuration 6 X 1.5792 9.4752
21 33.0975 1.54
$StartDay – Start Date parameter eg. Today 27 August 2012 or any date that you can select from the calendar
$TimeDuration – Daily, End of Week(starting Saturday), End of Month(from month end to the next month’s month end i.e. 28/2/2012,31/03/2012,30/04/2012….)
-------------if coding for the above variable is hard, focus on the daily--------------
Criteria
Enter Long(buy): When the closing price is greater than the previous day’s 6 day weighted moving average of the daily closing prices
Close Long (Sell): When the closing price is less than the previous day’s 6 day weighted moving average of the daily closing prices
Enter Short (Sell Short): As long as you are NOT in the Long position, when the closing price is less than the previous day’s 6 day weighted moving average of the daily closing prices
Enter Short (Sell Short): As long as you are NOT in the Long position, when the closing price is greater than the previous day’s 6 day weighted moving average of the daily closing prices