Работа завершена
Техническое задание
Hi,
I need a Trade Manager for mt4 with the following features.
The EA, manages open trades, on basis of Magic number or Comments.
These are the parameters required.
Manage_by_Comments=
Manage_by_Magic=
Manage_Basket_Trades=True/False
Trailingstop= True/False
Trailing_Starts_At_Profit= "x" pips ( it can be basket trades or else individual trades )
Trail_By=
Hidden_Trailing= True/False
Set_Stop_Loss_of_All_Trades= True/False
TimeFrame=
Look_Back_Candles =" x"
Add_To_Peak= "x" ( Stop Loss is set for the last "10" candles Hi/Lo point and adds "5" more pips to the virtual Stop loss
Hard_Stop_Given_To_Broker_Add= "x" pips ( This is the stop that is given to broker to prevent stop hunting. Our actual stop is the virtual stop above )
Close_All_At_Equity_Dollar=
Reduce_Equity_Close_After_each_new_position=
Reduce_Equity_Close_After_Each_Candle=
Timeframe = "x"
Minimum_Equity=
Print_Screen= True/False
Though most of the above are self_explanatory, I can explain the last part. We set to close all Open Orders plus any pending positions if the Equity reaches ; example = 10 $.
However if we set Reduce_Equity_Close_After_each_new_position=0.20 , Then CLose _Alll is now at 9.80, and after new position is at 9.60.
Also when Each candle is passed for the set TImeFrame of = h1 , then if we set Reduce_Equity_Close_After_Each_Candle=.50 , then after each candle the Equity required is reduced by another
0.50 $. Hence in above example if 2 positions are open within an hour , our equity required to close all will be 9.60 , and after an hour , our equity required will be 8.90.
Print _to Screen_ clearly defines what is happening with the EA.
Any doubts kindly reply
Thanks