Техническое задание
For Hedging, the EA will enter the first trade base on the RSI overbought and oversold or using moving average. and place both pending buy and sell stop order with equal grid size on the chart. If for example the EA enter a sell trade, and take profit is hit, all pending order will be deleted. But if price fluctuate and trigger both buys and sells order, the EA should wait until when it can average both buy and sell trade and close at a target profit, account will be protected by equity stop out mode.
For grid trade. The EA will enter the first trade base on the RSI overbought and oversold or using moving average, example if the EA enter a sell trade, pending orders sell limits orders will be place on the chart with equal grid distance. If profit target is hit, all pending limits order will be deleted, but if price move against us, more sell limits order will be trigger until price reverses and close at a target profit. If price fail to reverse, account will be protected by the equity stop out mode, in the lot size management.
All input should be flexible to customise in any desire sittings
PLEASE DO IT IN SUCH A WAY THAT THE EA CAN RECONTROL THE EXISTING TRADE AFTER THE PC RESTART.
The following will feature in the input parameter
Magic number-------1000
Use time filter (only for first trade) (hedging & Grid) ------- true/false
Start trade time……00:00:00
End trade time……00:00:00
Use breakeven close trade (hedging only) ……. True/false
Max hedge to close at breakeven ………4
Hedging/grid distance……….30
Use customise grid distant (hedging & Grid) ……. true/false
Customise grid………30,40,60,100,120
Money management sittings (hedging and grid)
Stop out equity %.............30
Take profit for first trade (hedging & Grid) ($) ……20
Average take profit for hedge trade ($) ……20
Max open orders(hedging & Grid)……….30
Max open order of the same type (Hedging)…….30
Lot sittings (Hedging and Grid) ……………. fixed/multiplier/addition/customise
Fixed lot………0.01
Multiplier…….1.5
Addition……0.02
Customise….0.03;0.05;0.07;0.09
Entry sittings……..RSI/MA
RSI period ……….14
Applies price……. close
Overbought ………70
Undersold …………30
MA method………exp/simple/smooth/linear
Moving average……50
Slippage…………….10
Time frame………any