Coding help - page 345

 
assasin:
is there any script for this

For such specific criteria there is no such script as far as I know

 

ok I will try to send whole codes to you

and

I meant order modify script, for all kind of orders .

 
assasin:
ok I will try to send whole codes to you

and

I meant order modify script, for all kind of orders .

Since there are a lot of scripts posted, here is where you can start from : scripts query

 

HI

EA doesn't work for an ECN broker please help

Files:
 
mladen:
Since there are a lot of scripts posted, here is where you can start from : scripts query

Thank you

I solved my problem with other way

 
xan023:
HI EA doesn't work for an ECN broker please help

xan023

Try it out (set the ECNBroker parameter to true to turn ECN type orders processing) : i_will_make_you_rich-1.01.mq4

 

Thanks mladen ea still not working only in the tester.

2014.09.15 22:32:44.019 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:47: EURUSD Buy Stop @ 1.2941 SL @ 1.2938 TP @1.2948 ticket =-1

2014.09.15 22:32:44.017 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:47: Error Occured : invalid stops

2014.09.15 22:32:42.863 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:46: EURUSD Buy Stop @ 1.2941 SL @ 1.2938 TP @1.2948 ticket =-1

2014.09.15 22:32:42.861 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:46: Error Occured : invalid stops

2014.09.15 22:32:41.722 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:45: EURUSD Buy Stop @ 1.2941 SL @ 1.2938 TP @1.2948 ticket =-1

2014.09.15 22:32:41.720 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:45: Error Occured : invalid stops

2014.09.15 22:32:06.686 I_Will_Make_You_Rich-1.01 EURUSD,H1: initialized

2014.09.15 22:32:06.672 I_Will_Make_You_Rich-1.01 EURUSD,H1 inputs: ECNBroker=true; GridDirection=1; GridSpacing=10; StopLoss=30; TakeProfit=70; TrailingStop=30; DeltaPrice=7; Lots=0.01; LotIncrement=0.1; UseLotIncrement=false; NoTradeYesterdayClose=false; MagicNumber=0; TradeLog=GridTrader_EA; EnableLog=true; BuyColor=16711680; SellColor=255;

2014.09.15 22:34:04.096 '324558': order buy stop 0.10 EURUSD opening at 1.29408 sl: 1.29378 tp: 1.29478 failed

2014.09.15 22:34:03.959 '324558': pending order buy stop 0.10 EURUSD at 1.29408 sl: 1.29378 tp: 1.29478

2014.09.15 22:34:02.954 '324558': order buy stop 0.10 EURUSD opening at 1.29408 sl: 1.29378 tp: 1.29478 failed

2014.09.15 22:34:02.823 '324558': pending order buy stop 0.10 EURUSD at 1.29408 sl: 1.29378 tp: 1.29478

 
xan023:
Thanks mladen ea still not working only in the tester.

2014.09.15 22:32:44.019 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:47: EURUSD Buy Stop @ 1.2941 SL @ 1.2938 TP @1.2948 ticket =-1

2014.09.15 22:32:44.017 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:47: Error Occured : invalid stops

2014.09.15 22:32:42.863 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:46: EURUSD Buy Stop @ 1.2941 SL @ 1.2938 TP @1.2948 ticket =-1

2014.09.15 22:32:42.861 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:46: Error Occured : invalid stops

2014.09.15 22:32:41.722 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:45: EURUSD Buy Stop @ 1.2941 SL @ 1.2938 TP @1.2948 ticket =-1

2014.09.15 22:32:41.720 I_Will_Make_You_Rich-1.01 EURUSD,H1: Time 2014.09.15 23:32:45: Error Occured : invalid stops

2014.09.15 22:32:06.686 I_Will_Make_You_Rich-1.01 EURUSD,H1: initialized

2014.09.15 22:32:06.672 I_Will_Make_You_Rich-1.01 EURUSD,H1 inputs: ECNBroker=true; GridDirection=1; GridSpacing=10; StopLoss=30; TakeProfit=70; TrailingStop=30; DeltaPrice=7; Lots=0.01; LotIncrement=0.1; UseLotIncrement=false; NoTradeYesterdayClose=false; MagicNumber=0; TradeLog=GridTrader_EA; EnableLog=true; BuyColor=16711680; SellColor=255;

2014.09.15 22:34:04.096 '324558': order buy stop 0.10 EURUSD opening at 1.29408 sl: 1.29378 tp: 1.29478 failed

2014.09.15 22:34:03.959 '324558': pending order buy stop 0.10 EURUSD at 1.29408 sl: 1.29378 tp: 1.29478

2014.09.15 22:34:02.954 '324558': order buy stop 0.10 EURUSD opening at 1.29408 sl: 1.29378 tp: 1.29478 failed

2014.09.15 22:34:02.823 '324558': pending order buy stop 0.10 EURUSD at 1.29408 sl: 1.29378 tp: 1.29478

xan023

Try using this one : i_will_make_you_rich-1.02.mq4

 

Thanks mladen ea still not working True ecn or False ecn

2014.09.16 10:21:03.630 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:11: EURUSD Buy Stop @ 1.29424 SL @ 1.29394 TP @1.29494 ticket =-1

2014.09.16 10:21:03.629 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:11: Error Occured : invalid stops

2014.09.16 10:21:01.689 I_Will_Make_You_Rich-1.02 EURUSD,H1: initialized

2014.09.16 10:21:01.674 I_Will_Make_You_Rich-1.02 EURUSD,H1 inputs: ECNBroker=true; GridDirection=1; GridSpacing=10; StopLoss=30; TakeProfit=70; TrailingStop=30; DeltaPrice=7; Lots=0.01; LotIncrement=0.1; UseLotIncrement=false; NoTradeYesterdayClose=false; MagicNumber=0; TradeLog=GridTrader_EA; EnableLog=true; BuyColor=16711680; SellColor=255;

2014.09.16 10:21:23.242 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:30: Error Occured : invalid stops

2014.09.16 10:21:21.229 I_Will_Make_You_Rich-1.02 EURUSD,H1: initialized

2014.09.16 10:21:21.229 I_Will_Make_You_Rich-1.02 EURUSD,H1: uninit reason 5

2014.09.16 10:21:20.229 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:28: EURUSD Buy Stop @ 1.29426 SL @ 1.29396 TP @1.29496 ticket =-1

2014.09.16 10:21:20.227 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:28: Error Occured : invalid stops

2014.09.16 10:21:19.455 I_Will_Make_You_Rich-1.02 EURUSD,H1 inputs: ECNBroker=false; GridDirection=1; GridSpacing=10; StopLoss=30; TakeProfit=70; TrailingStop=30; DeltaPrice=7; Lots=0.01; LotIncrement=0.1; UseLotIncrement=false; NoTradeYesterdayClose=false; MagicNumber=0; TradeLog=GridTrader_EA; EnableLog=true; BuyColor=16711680; SellColor=255;

 
xan023:
Thanks mladen ea still not working True ecn or False ecn

2014.09.16 10:21:03.630 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:11: EURUSD Buy Stop @ 1.29424 SL @ 1.29394 TP @1.29494 ticket =-1

2014.09.16 10:21:03.629 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:11: Error Occured : invalid stops

2014.09.16 10:21:01.689 I_Will_Make_You_Rich-1.02 EURUSD,H1: initialized

2014.09.16 10:21:01.674 I_Will_Make_You_Rich-1.02 EURUSD,H1 inputs: ECNBroker=true; GridDirection=1; GridSpacing=10; StopLoss=30; TakeProfit=70; TrailingStop=30; DeltaPrice=7; Lots=0.01; LotIncrement=0.1; UseLotIncrement=false; NoTradeYesterdayClose=false; MagicNumber=0; TradeLog=GridTrader_EA; EnableLog=true; BuyColor=16711680; SellColor=255;

2014.09.16 10:21:23.242 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:30: Error Occured : invalid stops

2014.09.16 10:21:21.229 I_Will_Make_You_Rich-1.02 EURUSD,H1: initialized

2014.09.16 10:21:21.229 I_Will_Make_You_Rich-1.02 EURUSD,H1: uninit reason 5

2014.09.16 10:21:20.229 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:28: EURUSD Buy Stop @ 1.29426 SL @ 1.29396 TP @1.29496 ticket =-1

2014.09.16 10:21:20.227 I_Will_Make_You_Rich-1.02 EURUSD,H1: Time 2014.09.16 11:21:28: Error Occured : invalid stops

2014.09.16 10:21:19.455 I_Will_Make_You_Rich-1.02 EURUSD,H1 inputs: ECNBroker=false; GridDirection=1; GridSpacing=10; StopLoss=30; TakeProfit=70; TrailingStop=30; DeltaPrice=7; Lots=0.01; LotIncrement=0.1; UseLotIncrement=false; NoTradeYesterdayClose=false; MagicNumber=0; TradeLog=GridTrader_EA; EnableLog=true; BuyColor=16711680; SellColor=255;

Results of a very quick test (as you can see, orders are first opened with stop loss and take profit set to 0 and then modified to proper stop loss and take profit (as it should be done on ECN brokers). No idea why it does not work for you

Files:
test.gif  82 kb
Reason: