You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Ah yea - got it! I think I know how to do it it - back to playing now :)
UPDATE BELOW - it does work :)
Sorry - I should stop asking 101 questions before I try things out :P
Yea - that does work. I now have it working where-by it closes as soon as the tick comes in and the bid is >= the OrderClose price specified :D
Nice large step in the right direction! Now to put a clamp on stopping this from constantly closing halves every time price revisits that same price specified in the OrderClose function :)
(Got rid of that annoying OrderModify error 1 too!) Hmmm, I cannot think of the correct logic for it to then WAIT after the first target (1:1) has done its close order... Any idea's? The OrderTicket() number is the same... so it can't be that way? I'm stuck on that part now :) after I have this bit, it's cracked pretty much :)
Man I am so grateful for your help!
Man I am so grateful for your help!
what a huge topic it is
Closing out half lots.
hope you can explain someone else how to do the moment you know
101 questions... who wants to read them all...
For (Got rid of that annoying OrderModify error 1 too!)
this happens most of the time if you try modify the trade with setting it already has
Man it's so rewarding once you figure it out too! Obviously thanks to your input as well!
The one last bit I am stuck on is telling the loop to stop halving the open order at that OrderClose() exit price, continously? I honestly cannot figure out the logic? It is spot on with WHEN and WHAT price to partially close at. I just need to tell it to stop ONCE it has halved the order one time?
The problem is, is that once the OrderClose() has closed half off on the open position, it will still be called again and again because the "int start" is calling "CloseHalfOrder()" every time there is an "OP_BUY" open... Any thoughts?
unbelievable 1 2 3 4 5 6 7 8 9 10 11 12
what a huge topic it is
Closing out half lots.
hope you can explain someone else how to do the moment you know
101 questions... who wants to read them all...
For (Got rid of that annoying OrderModify error 1 too!)
this happens most of the time if you try modify the trade with setting it already has
Mate I will be more than happy to write a thread explaining a simple and effective way to partially close an open order - I am stuck with just one last bit, and then it's working mint! I will collate it all in one concise topic / thread for others to use? (not sure how I'd go about doing this?)
See the last post above - I have nearly done it, just cannot figure out the logic to tell the loop to STOP closing halves at the same OrderClose() exit price continuously?
Thanks for the tip with regards to OrderModify error 1 too :)
Mate I will be more than happy to write a thread explaining a simple and effective way to partially close an open order - I am stuck with just one last bit, and then it's working mint! I will collate it all in one concise topic / thread for others to use? (not sure how I'd go about doing this?)
See the last post above - I have nearly done it, just cannot figure out the logic to tell the loop to STOP closing halves at the same OrderClose() exit price continuously?
Thanks for the tip with regards to OrderModify error 1 too :)
Why not first move your ticket to breakeven this is told you before and then close a part of the trade .... if OrderLots() >= .......
Why not first move your ticket to breakeven this is told you before and then close a part of the trade .... if OrderLots() >= .......
Because of this? It doesn't matter if I move to break even first... The first obstacle is this part I cannot understand? Even if I move to break even first, then close half, this will call ANY open positions again and OrderClose() at the same price again by calling "CloseHalfOrder();"?
Because of this? It doesn't matter if I move to break even first... The first obstacle is this part I cannot understand? Even if I move to break even first, then close half, this will call ANY open positions again and OrderClose() at the same price again by calling "CloseHalfOrder();"?