Can someone help with an Dollarcost Averaging function in MT4?

 

Hello Folks:

Happy New Year . I am thinking about a function for Dollarcost Averaging function that would essentially add x lots to a orginal position if down by 100 pips and modify the orders for all positions of the symbol to breakeven.

Example:

Say you are long 1 Lot EURUSD at 1.4500 with stop at 1.4350 and tp at 1.4600.

Now market goes to 1.4400. So Now I would like the function to automatically buy 2 lots at 1.4400 with stop at 1.4350 and tp of 1.4600. So Now average cost is 1.4433. So modify tp now to 1.4433 for all 3 lots.

Appreciate anyone willing to code this as a function in MT4. Thanks

Cheers,Padhu

 

hi

ccie8340:
Hello Folks:

Happy New Year . I am thinking about a function for Dollarcost Averaging function that would essentially add x lots to a orginal position if down by 100 pips and modify the orders for all positions of the symbol to breakeven.

Example:

Say you are long 1 Lot EURUSD at 1.4500 with stop at 1.4350 and tp at 1.4600.

Now market goes to 1.4400. So Now I would like the function to automatically buy 2 lots at 1.4400 with stop at 1.4350 and tp of 1.4600. So Now average cost is 1.4433. So modify tp now to 1.4433 for all 3 lots.

Appreciate anyone willing to code this as a function in MT4. Thanks

Cheers,Padhu

it's martingale system ...becareful big drawdown will always watching ...you can find the system here ...

for me Dollarcost Averaging great for stock market

===================

Forex Indicators Collection