Trabalho concluído
Termos de Referência
Hedge EA design,
It works on the basis of using a higher time frame as a filter, and uses stochastic cross below and above the 80/20 level. In line with the higher time frame moving average filter to decide on the initial position entry. It now has two options it will either go to hit target or it will go against the initial position, at this point if it goes against (by set distant) it will reverse position, with the initial same size. Now putting the trade into a hedge, now if the position continues going down against the first position at the set pip distant it will add into the favor the trade is moving in until it can close at set amount of pips. IF the position then goes back against the two positions that were added and goes back into the first positions favour it will go into full hedge again until it finally breaks out in one direction to close all trades with the original set pip target. ( it should use pending orders on the first 3 orders on the opposite side of the initial position in case of price spikes, and if an order is entered it will add the same pending order the other side in case of price reversal.
Inputs required
Gridsize: 10 ( distance before position is reversed )
Startlotsize:0.01
IncreaseLot: true or false
IncreaseStep:0.01 ( what level on the grid the lotsize will be increased by )
Stoploss:0
FirstTradeTakeprofit: 15
CloseALLtrades:10
MA_TF_Filter: Period_h1
MaMethod: Exponential
MaApplied: Close Price
Ma1Period:50
Ma2Period:150
Ma3Period:200
( The moving averages are the filter if 50 below 150 below 200 then sell is taken on initial position) it will stay this way until all emas have aligned into the new direction
Stochastic Settings:
K Period:5
D Period:3
Slowing:3
Sell_Level:80
Buy_Level:20