Maximum overkill Close-All script - Page 3
Page 3 of 846 FirstFirst 12345 ... LastLast
Results 21 to 30 of 52

Thread: Maximum overkill Close-All script

  1. #21
    Quote Originally Posted by ;
    quote In all honesty it is not hedging, it is managing net position via offsetting orders.
    You have nail it. Yes, this really is about. The orders management.

    I still call it hedging, in my own trading terms. There are two major techniques to hedge for me personally:

    1. By launching buys/sells.
    A. and maintain both opened all/most of the time.
    B. same as above, but shut by the hedged lots and maintain the net lots opened only, somewhere around the end of the afternoon, to avoid extra swaps.

    The way you shut by one against another by departing opened the net lots stayed, is vital. If you have 1.0 lot buys and 0.5 lots sells and shut by randomly any 0.5 buys vs any 0.5 sells isn't exactly the same as:

    2. Closing a buy instead of opening a new market.

    The developper I work with 4years already, told me it's exactly the same (1b and 2), but in fact the result is indeed different. 2 can barely being called self explanatory, yet it's for me, as I instead of starting a market, just close the very first buy opened, ext..

    Thus, managing the net opened orders is about in trading. The way you get there, hedging, nedging, gridding, lot(to), ext. doesn't make a difference.

  2. #22
    Quote Originally Posted by ;
    quote In all honesty it isn't hedging, it is managing web position via offsetting orders. I think if more traders understood the dynamic as such then they'd be open to changing their paradigm. Ironically, some of the very same people would start a GRID with offsetting orders; simply paying the freakin' broker for their own stupidity. I was actually banned from MQL5.com for calling out among the moderators for his idiotic waste of funds (he had been training additional traders to do this ) and however many times I explained it, his ego wouldn't accept the...
    Perhaps I am over-thinking that CloseBy thingy:--RRB-
    Bare with me please as I wish to find out if this situation is going to have any negative impact to my general egy. To begin with, I foundation by position size just on AccountFreeMargin() rather than accountEquity(). When I've free margin, I take the next available sign.

    With this being the situation from MM perspective and supposing all of my SL and TP for the same pair is in the exact same price level and off from the ordinary entry price... Could I use 2 merged Dollar Economy hedge orders one for SL and yet another one for TP with hedged size=overall size of buy positions?

    When the solution is yes, then it can free up AccountFreeMargin() as now the positions are hedged. This can effect the precise size of my next sign i.e. raising my exposure on the pair that the new sign is generated on. Not good BUT it's actually good if I am leaving the merged Hedge running at TP and Closing the Consolidated Hedge by immediately executing your closeby script.... In this manner, I am just FREEZING the profits out of typical entry price (i.e. TP triggered positions) and unlocking/exiting the winners straight away. In the end of week/month, I could do a closeby across all positions to realize the cost savings onto my profitable hedges. Win-Win in the end I think. Do I have this correct?

  3. #23
    Quote Originally Posted by ;
    quote Maybe I am over-thinking this CloseBy thingy:--RRB- Bare with me please as I want to find out if this scenario is going to have any adverse impact to my general egy. To begin with, I base by place dimensions just on AccountFreeMargin() and not accountEquity(). When I've free margin, I take the next available sign. With this being the case from MM standpoint and supposing all my SL and TP for the identical pair is in the exact same price level and off from the ordinary entry price... Can I use two consolidated Dollar Economy hedge orders one for SL and another for...
    Honestly, this makes no sense to me... I do not see what you're asking.

  4. #24
    Quote Originally Posted by ;
    quote Honestly, this makes no sense for me... I don't understand what you are asking.
    No worries. I will whip up a new EA and try out this before I mess around with mine. I spray bullets to input and use cannon ball to depart in baskets.

  5. #25
    Quote Originally Posted by ;
    quote I am not certain where the confusion is then... Sum up all of your positions and set you limit order of equal dimensions in the contrary direction. All places instantly shut. Done. Then all you've got to do is reconcile them closed either manually or programmatically. That is, afterall, how this script works.
    Thank you for the fantastic job N.
    Just to clarify, in that situation, ahead of the ordercloseby could be triggered, the limit order has to become an open order yea? Or are you saying that there is a means in MT4 to internet your orders together with unopened limit orders?

  6. #26
    Quote Originally Posted by ;
    quote Thank you for the fantastic work N. Just to clarify, in that scenario, before the ordercloseby may be triggered, the limit order has to become an open order yea? Or are you saying there is a means in MT4 to net your orders together with unopened limit orders?
    It is important to prevent think of orders as individual entities and start thinking of these as you would on a netted account. On a netted account, for instance, you would put the following long orders to average into a position [1, 1, 2, 1] along with your net position would be 5 lots long. Now lets say you placed an order for 1 lot short, nicely, then the platform would show you that you only have 4 lots long. On a hedging account you are able to perform the exact same thing, however, the difference is you will see offsetting orders and double penalties -- ONLY before you use closeby. After closeby there is almost no difference between you used orders on your account along with your netted account. In order to know you must understand netted accounts and net positions.

  7. #27
    Quote Originally Posted by ;
    quote It's important to stop consider orders as individual entities and start thinking of these as you would on a netted account. On a netted account, for instance, you would place the subsequent long orders to ordinary to a position [1, 1, 2, 1] along with your net position would be 5 lots long. Now lets say you placed an order for 1 lot brief, nicely, then the platform would show you which you now only have 4 lots long. On a hedging account you can do the exact same thing, but the difference is you will see offsetting orders and double commissions...
    Thanks for this N, I have been using close by for 2 decades now, until you generously shared your ideas to the widerforexforum.co.zacommunity. I actually just wanted to describe you if you meant the ordercloseby function within MT4 could also be triggered for e.g., 5 receptive buys, and one market limitation. My perception is that it isn't possible. The market limit would have to be actuated before ordercloseby can be used. Or did I misunderstand? Thanks!

  8. #28
    Quote Originally Posted by ;
    quote Thanks for this N, I have been using close by for two years now, until you shared your thoughts into the widerforexforum.co.zacommunity. I actually just wanted to clarify with you if you meant the ordercloseby work within MT4 might also be triggered with for e.g., 5 open buys, and 1 sell limitation. My perception is that it isn't possible. The sell limit would first have to be actuated before ordercloseby may be used. Or did I misunderstand? Thanks!
    You have to programmatically decide how to reconcile your orders. That means you'd need to recursively use one order to close another. By way of instance, 1(1Lot) buy 1(5lot) Sell becomes a modified Short of 4 lots. You then do the next order and so on until there are no offsetting places.

    Therefore it would look something like this...

    Inserted Code #91;1, 1, 1#93; #91;3#93; one shut / one altered #91;1, 1#93; #91;two #93; #91;1#93; #91;1#93; 0

  9. #29
    Quote Originally Posted by ;
    The goal of this script is to minimize risk in most situations, especially when the shit hits the fan. This script provides the very best and the fastest possible risk reduction available thru MT4 by utilizing some unique logic not found in some other close-all scripts. Operation Overview: Web positions are calculated per emblem (sum of all open transactions ). Symbols are prioritized to handle net-positions from bigger (more risk) to smaller. Hedge orders are sent in the order of priority to close all exposure at once regardless of the number of transactions. Once...
    Hello Nicholishen,
    Thank you very much for your script'HedgeAccountCloseAll'. It is really fantastic.
    (Maybe, the ideal name for your script is'CloseAllTradesWithoutCost')
    It closes all open transactions without any additional cost of spread and commission.
    I think we could apply this script also for closing of all open positions in profit (when we see the market is reversing) to prevent brokers commission and spread.
    Please note.

    Isn't it a reduction for the brokers? Probably that's the reason why, it isn't working with one of those broker IG. Perhaps they put some limitations.

    Again, thanks to your script.
    Regards,

  10. #30
    Quote Originally Posted by ;
    quote Hello, Thank you very much for your script'HedgeAccountCloseAll'. It is really fantastic. (Maybe, the right title for the script is'CloseAllTradesWithoutCost') It closes all open trades without any further cost of spread and commission. I think we could apply this script also for closure of open positions in profit (when we see that the market is reversing) to avoid brokers commission and disperse. Please note. Is not it a loss for those brokers? Probably that's the reason why, it isn't working with one of those broker IG. Maybe they put some...
    No it prices the same. It's just a more efficient approach to close your trades.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.