stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Multiple orders (EA or Script)
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4120
Page 2 of 3
Author:  fullaforex [ Thu Feb 19, 2015 8:57 am ]
Post subject:  Multiple orders (EA or Script)

milanese » Thu Feb 19, 2015 5:31 pm wrote: I will take a look to code you this EA...

Cheers :)

Tommaso
Thanks Tommaso,

Your efforts are greatly appreciated! :smile:

Fulla
Author:  milanese [ Thu Feb 19, 2015 3:28 pm ]
Post subject:  Multiple orders (EA or Script)

fullaforex » Thu Feb 19, 2015 8:57 am wrote:
Thanks Tommaso,

Your efforts are greatly appreciated! :smile:

Fulla
Here you go , I hope you understand all inputs, if not just ask.., note you should avoid re-initialzing of the EA, it has a security code for this implatend and should after a restart run as wished.. but this is only thought for emergeny cases (computer crash ecc)
BuyDirection set this to true if you want the EA only work in BUY direction
SellDirection set this to true if you want the EA only work in SELL direction

Edit was not what user wished, removed, you find later in thread latest version

Cheers :)

Tommaso
Author:  fullaforex [ Thu Feb 19, 2015 3:31 pm ]
Post subject:  Multiple orders (EA or Script)

milanese » Fri Feb 20, 2015 12:13 am wrote: Here you go , I hope you understand all inputs, if not just ask.., note you should avoid re-initialzing of the EA, it has a security code for this implatend and should after a restart run as wished.. but this is only thought for emergeny cases (computer crash ecc)
BuyDirection set this to true if you want the EA only work in BUY direction
SellDirection set this to true if you want the EA only work in SELL direction


Cheers :)

Tommaso

Thanks heaps Tommaso!
I'll check it out

Fulla :!!:
Author:  milanese [ Thu Feb 19, 2015 4:21 pm ]
Post subject:  Multiple orders (EA or Script)

fullaforex » Thu Feb 19, 2015 3:31 pm wrote:
Thanks heaps Tommaso!
I'll check it out

Fulla :!!:
I had a not 100% secure code for the handling of sl && tp, that is now fixed, please redownload in the original post --> http://www.stevehopwoodforex.com/phpBB3 ... 87#p115487

Cheers :)

Tommaso
Author:  fullaforex [ Wed Feb 25, 2015 4:31 am ]
Post subject:  Multiple orders (EA or Script)

milanese » Fri Feb 20, 2015 1:06 am wrote: I had a not 100% secure code for the handling of sl && tp, that is now fixed, please redownload in the original post --> http://www.stevehopwoodforex.com/phpBB3 ... 87#p115487

Cheers :)

Tommaso

Hi Tommaso,

Sorry to report that the EA doesn't work correctly. :oops:

The second trade only enters after the first trade is closed. ie it doesn't overlap like the HGI pendings.
Also I haven't seen a third trade open! :(

Also if Empty4 is interrupted the Stop and TP lines disappear. Even if I reset or reload the EA the lines don't come back.

I don't know if it's possible. I tried to modify it myself but I have very limited coding skills.

Cheers,

Fulla
Author:  milanese [ Wed Feb 25, 2015 7:44 am ]
Post subject:  Multiple orders (EA or Script)

fullaforex » Wed Feb 25, 2015 4:31 am wrote:
Hi Tommaso,

Sorry to report that the EA doesn't work correctly. :oops:

The second trade only enters after the first trade is closed. ie it doesn't overlap like the HGI pendings.
Also I haven't seen a third trade open! :(

Also if Empty4 is interrupted the Stop and TP lines disappear. Even if I reset or reload the EA the lines don't come back.

I don't know if it's possible. I tried to modify it myself but I have very limited coding skills.

Cheers,

Fulla
you wanted the second trade only after a tp hit....
the lines are no problem(they are only cosmetic), after a reload the EA closes all perfect in SL like you have set..(this I have tested)
For your opening logic, you must describe exactly what you want and I can code it, I can't unfortunately read your thoughts.
You asked for an EA that takes further trades, only after TP hit, so it is clear that you want see more trades open...

Cheers :)

Tommaso
Author:  fullaforex [ Wed Feb 25, 2015 8:19 am ]
Post subject:  Multiple orders (EA or Script)

milanese » Wed Feb 25, 2015 4:29 pm wrote: you wanted the second trade only after a tp hit....
the lines are no problem(they are only cosmetic), after a reload the EA closes all perfect in SL like you have set..(this I have tested)
For your opening logic, you must describe exactly what you want and I can code it, I can't unfortunately read your thoughts.
You asked for an EA that takes further trades, only after TP hit, so it is clear that you want see more trades open...

Cheers :)

Tommaso
I'm sorry if I wasn't clear before... :oops:

Here is how I think it should work..

If I set...
NextPendingDistanceToTP=0;
MaxOpenPositions=1;
SL = 50;
TP = 30;
Only 1 trade....Trading finishes at SL/TP. I would have to start again to trade again.

If I set...
NextPendingDistanceToTP=20;
MaxOpenPositions=10;
SL = 50;
TP = 30;

first trade entered.....
SL = 50.......>>OrderEntryPrice.......>>NextPendingDistanceToTP=20......>>TP = 30
Overlap (gap) of 10 pips between next pending and first TP.

Next trade entered.....
SL1..>>SL2..>>Entry1..>>Entry2..TP1..>>TP2...
After price reaches TP1 the process continues until MaxOpenPositions=10;

It's very similar to this.....
Author:  milanese [ Wed Feb 25, 2015 9:09 am ]
Post subject:  Multiple orders (EA or Script)

fullaforex » Wed Feb 25, 2015 8:19 am wrote:
I'm sorry if I wasn't clear before... :oops:

Here is how I think it should work..

If I set...
NextPendingDistanceToTP=0;
MaxOpenPositions=1;
SL = 50;
TP = 30;
Only 1 trade....Trading finishes at SL/TP. I would have to start again to trade again.

If I set...
NextPendingDistanceToTP=20;
MaxOpenPositions=10;
SL = 50;
TP = 30;

first trade entered.....
SL = 50.......>>OrderEntryPrice.......>>NextPendingDistanceToTP=20......>>TP = 30
Overlap (gap) of 10 pips between next pending and first TP.

Next trade entered.....
SL1..>>SL2..>>Entry1..>>Entry2..TP1..>>TP2...
After price reaches TP1 the process continues until MaxOpenPositions=10;

It's very similar to this.....
here you go this version should do what you want..
MultiHiddenPendingFullaB.mq4
Cheers :)

Tommaso
Author:  fullaforex [ Wed Feb 25, 2015 9:19 am ]
Post subject:  Multiple orders (EA or Script)

milanese » Wed Feb 25, 2015 5:54 pm wrote: here you go this version should do what you want..

Cheers :)

Tommaso
Thank you! I'll check it out... :smile:

Cheers,

Fulla :jump:
Author:  fullaforex [ Thu Feb 26, 2015 1:52 am ]
Post subject:  Multiple orders (EA or Script)

milanese » Wed Feb 25, 2015 5:54 pm wrote: here you go this version should do what you want..

Cheers :)

Tommaso

So far so good... :smile:

Is it possible to fully automate this?? :jump:
All times are UTC Page 2 of 3