工作已完成
指定
I need an Ea with given inputs below. Please quote me then I will open a job.
Inputs:
Lot size : .10
Entry distance : 20
Take profit : 50
Total orders :40
Stop loss : 100
Dual Trading : True/False
Magic No :1234
Equity Stop :1000
Slippage :20
I need an EA as we apply it starts trading with entry distance pips (input) from current price.
If market moves up it starts selling but it gradually increase entry like 1,2,3,4,5,6 and so on up to 40 orders. And if market moves down same way EA keeps buying gradually increasing Entry.
It will put take profit as average price of all active orders+tp pips. And it will check the TP and entry distance at each tic.
If market moves UP then it will start selling but when Market will start coming back to down side it will start buying as (last sell-entry gap). But first entry should be always entry gap/2.
Suppose when we apply market current price is 1.5200 and entry distance is 30 then. Market moves up.
Current price = 1.5200
1 sell = 1.5215
2 sell = 1.5245
3 sell = 1.5275
4 sell = 1.5305
Now market comes back to downside. It will start buying this way
Last active sell/buy entry = 1.5305
1 buy = 1.5290
2 buy = 1.5260
3 buy = 1.5230
In this way if after 1.5230 market starts moving up then it will not start selling again from 1.5245.
Because there can be only 1 scenario max. (Buy sequence and a Sell sequence).
In given scenario when both sequence are active and after last buy of 1.5230 market start moving up then next sell will be 1.5335 according to sell sequence because EA cannot create a third sequence.
Now when market will meet take profit of any one sequence (sell / buy) this sequence all entries will be close because of same TP same time EA will check that current price is how many pips away from the last entry of opposite sequence.
Suppose if it is 80 pips away from last entry of sell sequence then it will again take accumulative entry of 3 entries: entry gap (15+30+30=75) because market is 80 pips away from last active sell so as TP of a buy sequence will meet same time EA takes buy side entry again but accumulative ( .10+.20+.30= .60) at current price where TP for a buy sequence met.
Furthermore, if market keeps on moving downside and goes 105 pips away from opposite entry then it EA will keep continue buy sequence by buying forth entry = .40 and if market moves down 30 pips more it will buy .50 and so on gradually.
But TP will be always average price of active orders+ TP(input).
In case both sequence TP comes closer to each other then when last tp will meet and there will be no active order EA will reset from the price of Last TP.
Dual Trading: if dual trading is true then it will trade same as i explain above but if its false then it will trade only one way.
like if mkt moves up it will start selling and when it comes downit will not buy it will wait for tp to meet before buying. when TP will meet then it will reset and start buying if market goes more down. but same time only 1 side entries will be active either buy or sell.
i hope i made it clear.