• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 1:18pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 1:18pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Oanda "Order triggered but could not be completed..." 5 replies

EA that cancels non-triggered pending orders 3 replies

script to "close open orders" and "open opposite orders" 3 replies

Close other pending order when one is triggered 0 replies

Trailing Open Order triggered EA 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 44
Attachments: Change "Open Order TP(target)" if other pending order triggered
Exit Attachments
Tags: Change "Open Order TP(target)" if other pending order triggered
Cancel

Change "Open Order TP(target)" if other pending order triggered

  • Last Post
  •  
  • 1 45Page 678 9
  • 1 5Page 67 9
  •  
  • Post #101
  • Quote
  • Aug 11, 2013 6:03pm Aug 11, 2013 6:03pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
until now working sweet!!! I saw already price mooving and is setting well the pending order!!
what is for that TESTER true or false???
 
 
  • Post #102
  • Quote
  • Aug 11, 2013 6:17pm Aug 11, 2013 6:17pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
Gumrai, itīs missing that box that asks if we want to add pendings orders when we change the chart Time frame...when we cange the TF it set other pending!!!
 
 
  • Post #103
  • Quote
  • Aug 11, 2013 7:02pm Aug 11, 2013 7:02pm
  •  Findogg
  • | Joined Jun 2013 | Status: Member | 15 Posts
Quoting Gumrai
Disliked
Hi Xandi, this has only been tested in strategy tester, so totally unknown in the live market. I'm only attaching it so that hopefully a few people will do some testing with it and expose any problems. I think that it does what you ask. There are some differences here in the parameters MagicLetters etc are the same as before You will see a different parameter PipDecimal This is the amount of decimal points that designate 1 pip. ie for EURUSD you enter 4 because 1 pip is 0.00010, so the fourth number after the decimal point. Japanese pairs, you would...
Ignored
Thanks Gumrai....downloaded & testing.....
 
 
  • Post #104
  • Quote
  • Edited 7:50pm Aug 11, 2013 7:11pm | Edited 7:50pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
other question Gumrai!!!
now the EA only works creating "pending limit buy"?

because the 3 scenarios still necessary..I want to choose to start the Automated Play Motion in 1 of these 3 options:

  1. manually Open Position and after Link it to EA with the comment box
  2. Pending order linked to EA with comment box
  3. Trailing buy limit

and when the TP is hit, at that moment yes, only "trailing limit buy" enter, and when the TP is hit again, create again "trailing limit buy"..and so on..!!

ps: I think I get it, with Magic letters I can link it..but still doīt test it on that way...ill do it after this im testing

 
 
  • Post #105
  • Quote
  • Aug 11, 2013 7:38pm Aug 11, 2013 7:38pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
the trailing buy worked good...was triggered and created the pendings!now Iīm waiting the tp to be hit, to see the reaction...

ps: already dropped down the TP so it can be easy to be triggered!!
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 101 KB
 
 
  • Post #106
  • Quote
  • Aug 11, 2013 7:52pm Aug 11, 2013 7:52pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
yeahhhhh!!incredibleeeee!!! tp was hit, pending were deleted, and new Trailing pending buy was created!!
how can you be so Glorious, gumrai??
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 92 KB
 
 
  • Post #107
  • Quote
  • Aug 11, 2013 7:54pm Aug 11, 2013 7:54pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
going to test it with manual entry now!!! Iīm so crazy with this tool!!!!
 
 
  • Post #108
  • Quote
  • Aug 11, 2013 8:00pm Aug 11, 2013 8:00pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting xandi
Disliked
Gumrai, itīs missing that box that asks if we want to add pendings orders when we change the chart Time frame...when we cange the TF it set other pending!!!
Ignored

OOPs!

will sort that
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #109
  • Quote
  • Edited Aug 12, 2013 8:58am Aug 11, 2013 8:11pm | Edited Aug 12, 2013 8:58am
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
ok, imagine this:

I openned position manually, buy, with comment EY, tp 50 pips
...
this time I donīt want that "trailing buy" is created from beggining, since I have already the position oppened, I want only the Trailing buy to be created if the TP is hit....

maybe that can be other EA, and depending on the context, if I want to start trading with the "Trailing buy" I use this new EA..

If I want to start mannualy the 1st position, or on fixed pending buy, I use the previous version, but you have to put there the option when TP is hit you delete all orders and set the Trailing Buy, exactly how this EA is working when TP is hit!!!

seems beautiful, and we only have to choose one or other EA!!!!!
what do you think, brother magician coder!?!
 
 
  • Post #110
  • Quote
  • Aug 12, 2013 11:32pm Aug 12, 2013 11:32pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
OK.
The box is back to check whether pending orders have already been opened.
There is also an additional box for if you enter a pending order as the Master trade.
If the EA detects a pending trade, it has no way to differentiate between a Master or Slave ticket, so you will need to tell it.
If you click Yes, the pending order will not be modified.
Attached File(s)
File Type: ex4 TrailLimitBuy v1.2.ex4   9 KB | 212 downloads
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #111
  • Quote
  • Aug 13, 2013 2:29am Aug 13, 2013 2:29am
  •  chjungen
  • | Joined Dec 2009 | Status: Member | 61 Posts
hi Guys!
yes, i like to help writing the EA for Xandi system. Unfortunatley my Internet connection is broken
now since 3 days. I'm in Thailand now,visiting my future wife. Hopefully I can use Internet soon
on my notebook. Hehehe, I noticed Gumrai is from Thailand. Sawadee khrap my neighbour!!!

Chris
 
 
  • Post #112
  • Quote
  • Aug 13, 2013 8:31am Aug 13, 2013 8:31am
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
Quoting Gumrai
Disliked
OK. The box is back to check whether pending orders have already been opened. There is also an additional box for if you enter a pending order as the Master trade. If the EA detects a pending trade, it has no way to differentiate between a Master or Slave ticket, so you will need to tell it. If you click Yes, the pending order will not be modified. {file}
Ignored
and if I enter on 1st trade mannualy, not by pending buy?

the cycle is this:

I open mannualy "buy trade", with comment EY & tp 50...I set EA linked on field comment EY...the only thing is created is the "PendingBuys" pyramid...the TP is hit...the TRAILING BUY LIMIT is created...and follow works as your ea I tested yesterday (trailing buy is triggered, pyramid pending buys are created, and so on...)...

other scenario:
I open mannualy "buy trade", with comment EY & tp 50...I set EA linked on field comment EY...the only thing is created is the "PendingBuys" pyramid..."the 1st pending buy pyramid"...the all TP of open position are changed to Break even...and so on...

other scenario:
I set pending buy trade, with comment EY & tp 50....I set EA linked on field comment EY...when pending buy is triggered, is created the "PendingBuys pyramid"....the TP is hit...the TRAILING BUY LIMIT is created...and follow works as your ea I tested yesterday...

other scenario:
I set pending buy trade, with comment EY & tp 50....I set EA linked on field comment EY...when pending buy is triggered, is created the "PendingBuys pyramid"..."the 1st pending buy pyramid" is triggered...the all TP of open position are changed to Break even...and so on...


ok bro, these are all the scenarios we have to have...read it carefull...I donīt know if itīs better on 2 separated EA, one Trailing Buy as this last one (I didnīt test it, going to do it on asia this night), and other like the previous ones before the trailing issue but which works when TP is hit creating a trailing buy...I explain it better in some post above...

Think on it with peace....thanks
 
 
  • Post #113
  • Quote
  • Aug 13, 2013 9:01am Aug 13, 2013 9:01am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting xandi
Disliked
{quote} and if I enter on 1st trade mannualy, not by pending buy? the cycle is this: I open mannualy "buy trade", with comment EY & tp 50...I set EA linked on field comment EY...the only thing is created is the "PendingBuys" pyramid...the TP is hit...the TRAILING BUY LIMIT is created...and follow works as your ea I tested yesterday (trailing buy is triggered, pyramid pending buys are created, and so on...)
Ignored
If you start with a market order, the EA will treat it as a Master Ticket
If you start with a pending order, the EA does not know whether this is a Master or a Slave Ticket.
This is only an issue when the EA is re-initialised because of changing timeframes or after closing the platform for a while for whatever reason.
So if you open a buy order, not a pending order, the EA will not ask you if it is a Master or Slave.

Quote
Disliked
other scenario:
I open mannualy "buy trade", with comment EY & tp 50...I set EA linked on field comment EY...the only thing is created is the "PendingBuys" pyramid..."the 1st pending buy pyramid"...the all TP of open position are changed to Break even...and so on...
This, I think is an addition to the EA, and can be considered when this version has been properly tested.
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #114
  • Quote
  • Aug 13, 2013 10:01am Aug 13, 2013 10:01am
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
Quoting Gumrai
Disliked
{quote} If you start with a market order, the EA will treat it as a Master Ticket If you start with a pending order, the EA does not know whether this is a Master or a Slave Ticket. This is only an issue when the EA is re-initialised because of changing timeframes or after closing the platform for a while for whatever reason. So if you open a buy order, not a pending order, the EA will not ask you if it is a Master or Slave. {quote} This, I think is an addition to the EA, and can be considered when this version has been properly tested.
Ignored
have to test the recent one this night...after Iīll comment what is missing regarding these 4 scenarios!! hasta luego bro!!
 
 
  • Post #115
  • Quote
  • Aug 14, 2013 5:58pm Aug 14, 2013 5:58pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
testing new releasee!!!
 
 
  • Post #116
  • Quote
  • Edited 6:57pm Aug 14, 2013 6:02pm | Edited 6:57pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
AHHHHH...it detects the pending order automatically!!! smart!!!!

but it not create the pending orders linked to the pending order master...the tester must be yes??
 
 
  • Post #117
  • Quote
  • Aug 14, 2013 7:12pm Aug 14, 2013 7:12pm
  •  xandi
  • Joined Jan 2012 | Status: Loving Nature* | 3,985 Posts
ok GumRai, im with some doubts...the v1 TrailBuy only works with Tester=True..and works perfect with that...
this last version, It detects the pending order, I say yes to treat as master, and it donīt create the pendings, as the version "Add pending mody Order"...the pendind is triggered and it still doesnīt create the pyramid pendings...and he Tester??it is used for what? it has to be true? it still not work in this last version...

hmmm...tomorrow is holiday here, if you want to talk with me by skype or messenger tell me!!
take care brooo
 
 
  • Post #118
  • Quote
  • Aug 15, 2013 8:37am Aug 15, 2013 8:37am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting xandi
Disliked
ok GumRai, im with some doubts...the v1 TrailBuy only works with Tester=True..and works perfect with that... this last version, It detects the pending order, I say yes to treat as master, and it donīt create the pendings, as the version "Add pending mody Order"...the pendind is triggered and it still doesnīt create the pyramid pendings...and he Tester??it is used for what? it has to be true? it still not work in this last version... hmmm...tomorrow is holiday here, if you want to talk with me by skype or messenger tell me!! take care brooo
Ignored
My inmternet connection has been absolutely atrocious today, will look into the problem and get back to you. If you don't hear from me it's because I cannot connect.
One of the joys of living in Thailand.
The Thais only excel at one thing and that's incompetence!
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #119
  • Quote
  • Edited 1:41am Aug 16, 2013 1:26am | Edited 1:41am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
I believe that I have found an anomaly.
There was a problem that if you just changed some of the settings in the EA for a new set of trades that it would keep the MasterTicket from a previous set of trades and that could affect its operation.
Amended EA attached.

Xandi, re the pending orders not opening,
When the box pops up and asks "do you wish to open pending orders", are you clicking on "no" because the MasterTicket is a pending order?
If so, you should be clicking on "yes" if the additional pending orders have not yet been placed.
Attached File(s)
File Type: ex4 TrailLimitBuy v1.3.ex4   9 KB | 241 downloads
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #120
  • Quote
  • Aug 16, 2013 3:12am Aug 16, 2013 3:12am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
I forgot Xandi,
Tester should be set to false.
Its only purpose is to open a trade so that settings can be tested in the MT4 strategy tester
Please Do Not PM Me With Coding Enquiries
 
 
  • Platform Tech
  • /
  • Change "Open Order TP(target)" if other pending order triggered
  • Reply to Thread
    • 1 45Page 678 9
    • 1 5Page 67 9
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023