I know, I know... we've all said it before, hedging is*** stupid because it costs you twice in fees, right?
Well that's actually not (always) true. There is a neat little hidden jewel in MT that's almost completely undocumented and nearly never used by developers (actually) that's called OrderCloseBy. What this function does is takes hedged orders and reconciles the trades as netted. This allows you to do some awesome things we'll talk about in a moment, but for now it is important to understand that in case you use this method you are not charged double fees since you are instructing the broker machine to reconcile the hedge as a netting trade.
eg. Buy 1 lot to start and market 1 lot to close. Profit = spread of market price - buy price. Net commission = 1 lot (not two). Net Profit = Profit - commission.
So why is this important? It's about risk management. Let's say you have 20 open positions and you would like to close them down instantly. How can you do it?
Option 1: Close them one by one whilst crying into your computer keyboard as your profits will be slipping away from waiting for every order to close and confirm....and on....and on....
Option 2: You send in a hedge. Wait until calm markets. Close both and get charged fees.
Option 3: You send in a hedge. Close when you damn-well please by instructing the server to reconcile both trades and only get billed.
What about reversing positions? Even if you're reversing one order which you still have to close one....wait for confirmation....open another. In the mean-time a second could have passed and slippage accrued in the procedure. Reversing with hedging is instantaneous once you ship an order in that's net_position * two in the contrary direction. Then of course you use OrderCloseBy to reconcile the orders as partly closed - busting you nothing at the procedure.
Here's a proof of concept trade panel I created. It is not the most pretty panel out there, but it's the quickest!
IMPORTANT: This won't work with brokers that don't support hedging accounts.
Characteristics:One-click trading Establish TP and SL by points Add or subtract incremental positions at will to handle overall internet exposure Reverse internet position instantly Close web position instantly order management to Panel orders simply so that you won't interfere with different orders (such as alt EA orders) Order Maintenance button to reconcile trade in your program so it won't slow down fast scalping in a fast market Status in window. Contains action status that is last with order latency and slippage reporting as well as the net position. Proceed window anywhere on screen for convenience Attachment 2491994
https://www.forexforum.co.za/attachm...1831139457.ex4