Auftrag beendet
Spezifikation
Hi,
I am looking for someone to fix my EA as my previous coder does not respond to me after he send this EA.The EA has been make base on my forex strategy with a little twist of it, but the EA does not running the way i want it.
So let's me explain the strategy:
No indicators will be use.The strategy only work with 4 decimal broker and with fixed spread pairs.Variable spreads will not work with this strategy.i use instaforex and my main trading pairs is EUR/JPY and the value spread for this pairs is 3.
All orders will only use Take profits 10 and Stop loss 23 and the strategy will be using the lots size rule below :
order 1 : $0.01
order 2 : $0.03
order 3 : $0.09
order 4 : $0.27
order 5 : $0.81
order 6 : $2.43
Money Management
For MM, i will only open maximun 6 orders(if it reach the maximun i will consider that trades as a loss if the last order hit SL or maybe make a profits if the last order hit the TP.
Also the EA with strategy is not intended to be use for 24/h, it will be run on certain time during high movement market price.My job is just to switch it ON and then turn it OFF later at night.
The Strategy
With out any analysis etc i will open the pairs and execute instant SELL order with lots size 0.01 TP 10 and SL 23 then immediately i added pending order BUY Stop 10 pips above from the sell order price with lots size 0.03 and TP 10 SL 23. (see the image below)
Now if the SELL order hit TP then the trade season will be consider as finished and the pending order will be remove.But if the pending order (Buy Stop) triggered then i will add another new pending order, but this time it will be the PENDING ORDER SELL STOP with lots size 0.09 TP 10 and SL 23 position at the same price as the previous Sell order (see the image below)
As i mentioned previously, if the live order hit the TP then the trade is finish and i will just start it again from the earlier step.But if the new pending order has been triggered, i immediately add the new pending stop order and this time it will be BUY STOP with lots size 0.27 position at the same price of the previous Buy order.TP and SL still the same (see the image below)
All i do is just repeat this process :
Send instant SELL and Pending BUY STOP order <if pending BUY STOP order triggered> send new pending order SELL STOP <if the pending SELL STOP order triggered> send new pending BUY STOP order ...i will keep doing this till any of the orders hit TP or i reach the maximun of orders to be opened which is 6.
Now, for this trade lets say only 4 orders including the pending order has been added and the market price has reach and hit the SELL TP just like in the image above, all orders will be closed including the BUY order because during the market price reaching and hit TP it also hit the SL and that make all the orders closed all together at the same time.
If all the orders has been closed..the remaining of pending order will be remove and i will just go and repeat all the process from the start again by make new order with starting lots size 0.01 again...(See the image below)
(p/s: Just vice versa the running process of this strategy if i want to make an instant buy order at first and SELL STOP as the second order.)
EA problem and need to be repair
The problem that has been make by this EA is, it send all 6 orders instantly and not following the strategy rules which is only send 2 orders at first, then wait for any of those order hit TP or been triggered.
I think maybe the EA is not using any of magic numbers for each orders it send..so hoping for some to fix it.
If the image above does not appear please download the pdf format in zip file below.