Multiple orders (EA or Script)

fullaforex
Trader
Posts: 120
Joined: Sat Mar 29, 2014 6:25 am

Multiple orders (EA or Script)

Post by fullaforex »

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
There are 10 types of people in the world. Those who understand Binary and those who don't.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Multiple orders (EA or Script)

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fullaforex
Trader
Posts: 120
Joined: Sat Mar 29, 2014 6:25 am

Multiple orders (EA or Script)

Post by fullaforex »

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 :!!:
There are 10 types of people in the world. Those who understand Binary and those who don't.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Multiple orders (EA or Script)

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fullaforex
Trader
Posts: 120
Joined: Sat Mar 29, 2014 6:25 am

Multiple orders (EA or Script)

Post by fullaforex »

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
There are 10 types of people in the world. Those who understand Binary and those who don't.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Multiple orders (EA or Script)

Post by milanese »

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
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fullaforex
Trader
Posts: 120
Joined: Sat Mar 29, 2014 6:25 am

Multiple orders (EA or Script)

Post by fullaforex »

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.....
You do not have the required permissions to view the files attached to this post.
There are 10 types of people in the world. Those who understand Binary and those who don't.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Multiple orders (EA or Script)

Post by milanese »

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
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
fullaforex
Trader
Posts: 120
Joined: Sat Mar 29, 2014 6:25 am

Multiple orders (EA or Script)

Post by fullaforex »

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:
There are 10 types of people in the world. Those who understand Binary and those who don't.
fullaforex
Trader
Posts: 120
Joined: Sat Mar 29, 2014 6:25 am

Multiple orders (EA or Script)

Post by fullaforex »

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:
There are 10 types of people in the world. Those who understand Binary and those who don't.
Post Reply

Return to “Scripts”