Hi, I'm looking for someone to help me write this EA
I've tried the "free EA coding" thread but no luck
This method is my grail (not yet holy), I'm trading with this in Thailand stock market and it works perfectly
extern bool Buy1Sell0 = A;
extern double Lots = B;
extern double TakeProfit = C;
This EA will open order immediately after enabled
let accuse the price of GBPUSD is now
1.0000
EA will consider first to long or short by look at "extern boll Buy1Sell0"
So if A=1 then long only
an if A=0 then short only
___________________________________ ____________________
let accuse#1
A=1(long only)
Soon as I drag EA to the chat it will
Long B.lot 1.0000 TakeProfit=C---(order 1)
then open pending all Long at
buy limit 0.9800(1.0000-4C) TakeProfit = C
buy limit 0.9850(1.0000-3C) TakeProfit = C
buy limit 0.9900(1.0000-2C) TakeProfit = C
buy limit 0.9950(1.0000-C) TakeProfit = C
------
buy stop 1.0050(1.0000+C) TakeProfit = C
buy stop 1.0100(1.0000+2C) TakeProfit = C
buy stop 1.0150(1.0000+3C) TakeProfit = C
buy stop 1.0200(1.0000+4c) TakeProfit = C
total of 8 orders
4 below 1.0000
4 over 1.0000
by using C as range between orders
then if the price move to 1.0000+C order 1 will automatically close with C pips profit then platform will trigger the buy stop at 1.0000
EA will open one more long order at 1.0000 with TP of C
EA will open one more long order at 1.000+5C(current price +4C) with TP of C (atleast 4C + or - the current price)
then if the price move to 1.0000-C will automatically trigger buy limit at 1.0000-C
something like this
___________________________________ ___________________________
let accuse#2
A=1(long only)
B=0.1 lot
C=50 pips
Ok now
Soon as I drag EA to the chat it will
Long 0.1lot 1.0000 TP50---(order 1)
then open pending all Long at
buy limit 0.9800 TP 0.9800+50pips = 0.9850
buy limit 0.9850 TP 0.9850+50pips = 0.9900
buy limit 0.9900 TP 0.9900+50pips = 0.9950
buy limit 0.9950 TP 0.9950+50pips = 1.0000
------
buy stop 1.0050 TP 1.0050+50pips = 1.0100
buy stop 1.0100 TP 1.0100+50pips = 1.0150
buy stop 1.0150 TP 1.0150+50pips = 1.0200
buy stop 1.0200 TP 1.0200+50pips = 1.0250
total of 8 orders
4 below 1.0000
4 over 1.0000
by using C as range between orders (50)
then if the price move to 1.0050 order 1 will automatically close with 50 pips profit then platform will trigger the buy stop at 1.0050
EA will open one more long order at 1.0000 with TP of 50
EA will open one more long order at 1.0250 with TP of 50 (atleast 200 + or - the current price)
then if the price move to 0.9950 will automatically trigger buy limit at 0.9950
and then cycle
note that
EA will only open instant order at the first time then the rest is pending order only!
EA will only add an order only when one order has successfully reached TP
thx 4 help, really appreciated.
I've tried the "free EA coding" thread but no luck
This method is my grail (not yet holy), I'm trading with this in Thailand stock market and it works perfectly
extern bool Buy1Sell0 = A;
extern double Lots = B;
extern double TakeProfit = C;
This EA will open order immediately after enabled
let accuse the price of GBPUSD is now
1.0000
EA will consider first to long or short by look at "extern boll Buy1Sell0"
So if A=1 then long only
an if A=0 then short only
___________________________________ ____________________
let accuse#1
A=1(long only)
Soon as I drag EA to the chat it will
Long B.lot 1.0000 TakeProfit=C---(order 1)
then open pending all Long at
buy limit 0.9800(1.0000-4C) TakeProfit = C
buy limit 0.9850(1.0000-3C) TakeProfit = C
buy limit 0.9900(1.0000-2C) TakeProfit = C
buy limit 0.9950(1.0000-C) TakeProfit = C
------
buy stop 1.0050(1.0000+C) TakeProfit = C
buy stop 1.0100(1.0000+2C) TakeProfit = C
buy stop 1.0150(1.0000+3C) TakeProfit = C
buy stop 1.0200(1.0000+4c) TakeProfit = C
total of 8 orders
4 below 1.0000
4 over 1.0000
by using C as range between orders
then if the price move to 1.0000+C order 1 will automatically close with C pips profit then platform will trigger the buy stop at 1.0000
EA will open one more long order at 1.0000 with TP of C
EA will open one more long order at 1.000+5C(current price +4C) with TP of C (atleast 4C + or - the current price)
then if the price move to 1.0000-C will automatically trigger buy limit at 1.0000-C
something like this
___________________________________ ___________________________
let accuse#2
A=1(long only)
B=0.1 lot
C=50 pips
Ok now
Soon as I drag EA to the chat it will
Long 0.1lot 1.0000 TP50---(order 1)
then open pending all Long at
buy limit 0.9800 TP 0.9800+50pips = 0.9850
buy limit 0.9850 TP 0.9850+50pips = 0.9900
buy limit 0.9900 TP 0.9900+50pips = 0.9950
buy limit 0.9950 TP 0.9950+50pips = 1.0000
------
buy stop 1.0050 TP 1.0050+50pips = 1.0100
buy stop 1.0100 TP 1.0100+50pips = 1.0150
buy stop 1.0150 TP 1.0150+50pips = 1.0200
buy stop 1.0200 TP 1.0200+50pips = 1.0250
total of 8 orders
4 below 1.0000
4 over 1.0000
by using C as range between orders (50)
then if the price move to 1.0050 order 1 will automatically close with 50 pips profit then platform will trigger the buy stop at 1.0050
EA will open one more long order at 1.0000 with TP of 50
EA will open one more long order at 1.0250 with TP of 50 (atleast 200 + or - the current price)
then if the price move to 0.9950 will automatically trigger buy limit at 0.9950
and then cycle
note that
EA will only open instant order at the first time then the rest is pending order only!
EA will only add an order only when one order has successfully reached TP
thx 4 help, really appreciated.