Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

This script enables you to close a hedged position and only pay 1x spread instead of 2.

I find it very useful for scaling out of winning positions, as I can just place pending limit orders at my TP levels and then use this script to close close out the 'opposite orders' and only pay 1x spread.

 

http://www.mediafire.com/file/95wmc8atvz6f46j/CloseOppstOrders.mq4

 

Example:

Long GU 1.00 lots @ 1.5800

Short GU 0.33 lots @ 1.5850 (+50 pip ) - a filled Sell Limit Order

Short GU 0.33 lots @ 1.5900 (+100 pips) - a filled Sell limit Order

 

If you ran the script now it would close out the 2x short positions of 0.33 lots as well as simultaneously close 0.66 lots of the long position, banking the profit and you only pay 1 spread. 0.34 lots long would be left open.

 

I think it's pretty cool - I wish I knew about it years ago.

 

Cheers, Pye

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...