View Single Post
  #659 (permalink)  
Old 12-30-2007, 11:29 AM
waltini waltini is offline
Senior Member
 
Join Date: May 2006
Posts: 147
waltini is on a distinguished road
Time to do some code reading

Quote:
Originally Posted by matrixebiz View Post
Yeah, I knew this was different than 10.3 but when I saw it do straight martingale this week on EUR/JPY I thought I did something wrong. It would be great for the EA to open opposite direction trades when EA is going against you, like Hedging, cover some of the losses or turning into winning ProfitTarget if trend doesn't reverse back in your favor.

also, is there a DPO Indicator that I can attach to a chart to see what it's doing?
Hi Matrixebiz, I believe the general consensus is to either go long or short only. To achieve hedging take the opposite position in another correlated currency or the same currency(different chart). By having trades with the trend closer together and trades against the trend further apart, hopefully any losses taken by trades against the trend will quickly be overcome by the other currency. This strategy was mentioned by someone else and is not my idea.

A quick look at the code looks to me like someone(probably tiger wong) has named the indicator which is a 2 period linear weighted moving average(30 min timeframe), using a weighted close and using the current bar which is being formed. This indicator is one of the set of indicators provided with metatrader, just use a moving average and put in the parameters.

In this case for a long trade the moving average must be above the open price for the day for any long trades to be taken if DPO=true.
Reply With Quote