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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Hedging synthetic pairs 25 replies

Question for synthetic and non-synthetic currency pairs 0 replies

Synthetic Hedging 6 replies

Help with breakout and hedging script 1 reply

CFTC + NFA: End Of Hedging? 112 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Synthetic Hedging Script, Conforms to new CFTC regulations
Exit Attachments

Synthetic Hedging Script, Conforms to new CFTC regulations

  • Post #1
  • Quote
  • First Post: Edited Nov 7, 2009 8:24pm Nov 6, 2009 4:23am | Edited Nov 7, 2009 8:24pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
For all of you traders looking for a way around the anti hedging rules here is a script for you.

It basically works by creating an inverse derivative of what ever position you want to hedge. For example if you want to hedge a long EURUSD position it might SELL EURCHF and BUY USDCHF in proportion to your EURUSD exposure.

To use, simply run the script and select the positions that you would like to hedge.

Your hedge positions are determined on a transactional cost basis, by selecting the inverse derivative combination with the lowest transaction cost.

There will be a commercial version available for MT5 with many more usefull features. I had to severely limit the functionality on this MT4 version due to lack of reasonable security.

Please let me know if there are any additional features or bug fixes that you would like to see added to this.



KK
Attached File
File Type: ex4 Kurka - SynHedge.ex4   9 KB | 983 downloads
Keep it simple stoopid....
  • Post #2
  • Quote
  • Nov 6, 2009 4:56am Nov 6, 2009 4:56am
  •  smjones
  • Joined Mar 2006 | Status: THANK YOU MERLIN,TWEE and FF Team | 4,603 Posts
I loaded this up in NotePad... That's pretty funny. I HEARBY ACKNOWLEDGE THAT KURKA IS A FOREX GENIUS

Nice script BTW thanks.
 
 
  • Post #3
  • Quote
  • Nov 6, 2009 8:10am Nov 6, 2009 8:10am
  •  waltini1
  • | Joined Feb 2007 | Status: Member | 157 Posts
Many thanks Kurka but I am getting a zero divide error on a standard ibfx demo. I had one trade open, a sell of 0.1 lot of EurUsd.
 
 
  • Post #4
  • Quote
  • Nov 6, 2009 8:16am Nov 6, 2009 8:16am
  •  7bit
  • Joined Mar 2009 | Status: Member | 1,231 Posts
Quoting Kurka Fund
Disliked
For example if you want to hedge a long EURUSD position it might SELL EURCHF and BUY USDCHF in proportion to your EURUSD exposure.
Ignored
What is the intended use for this? Why not just close the EURUSD position instead of paying two additional spreads plus the swap and unnecessarily use margin?

To me this makes just as much sense as

// this will work even faster
while (equity() > 0){
buy("XAUUSD");
close("XAUUSD");
}
alert("all money transferred to broker!");
 
 
  • Post #5
  • Quote
  • Nov 6, 2009 12:47pm Nov 6, 2009 12:47pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
Quoting 7bit
Disliked
What is the intended use for this? Why not just close the EURUSD position instead of paying two additional spreads plus the swap and unnecessarily use margin?

To me this makes just as much sense as

// this will work even faster
while (equity() > 0){
buy("XAUUSD");
close("XAUUSD");
}
alert("all money transferred to broker!");
Ignored
I completely agree. Hedging make no sense from an economic standpoint.

This script simply gives all the traders that are complaining about how anti hedging laws destroyed their fantastically profitable strategy a working alternative that conforms to the current regulations. So no more complaining about not being able to hedge.

Also, since this is not hedging in the traditional sense, there are some interesting strategies that can be applied. Hopefully this can inspire some new trading ideas.

KK
Keep it simple stoopid....
 
 
  • Post #6
  • Quote
  • Nov 6, 2009 12:52pm Nov 6, 2009 12:52pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
Quoting smjones
Disliked
I loaded this up in NotePad... That's pretty funny. I HEARBY ACKNOWLEDGE THAT KURKA IS A FOREX GENIUS

Nice script BTW thanks.
Ignored
Nothing in life is free, in this case you pay by acknowledging my greatness.

I will work on making all of my future releases even more cocky.
Keep it simple stoopid....
 
 
  • Post #7
  • Quote
  • Nov 6, 2009 12:56pm Nov 6, 2009 12:56pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
Quoting waltini1
Disliked
Many thanks Kurka but I am getting a zero divide error on a standard ibfx demo. I had one trade open, a sell of 0.1 lot of EurUsd.
Ignored
I could not replicate this error. I tried with the same position on IBFX demo and it opened a Long - EURCHF and Short - USDCHF successfully. Please provide more info.
Keep it simple stoopid....
 
 
  • Post #8
  • Quote
  • Nov 6, 2009 1:25pm Nov 6, 2009 1:25pm
  •  7bit
  • Joined Mar 2009 | Status: Member | 1,231 Posts
Quoting Kurka Fund
Disliked
This script simply gives all the traders that are complaining about how anti hedging laws destroyed their fantastically profitable strategy a working alternative
Ignored
Maybe it would make sense to give these traders tools that really help them:

* An indicator that would analyze the order history (in a hedged MT4 account) in real time and draw the non-hedged equivalent of all trades into the chart or into an indicator window for education purposes.

* Scripts with a simple user interface that would allow to open counter-trend trades with their own stoplosses and takeprofits (stop and limit orders managed by the script) and behave just like hedged counter trades (maybe even display their own partial floating P&L in real time) but without actually hedging.
 
 
  • Post #9
  • Quote
  • Nov 6, 2009 4:59pm Nov 6, 2009 4:59pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
Quoting 7bit
Disliked
Maybe it would make sense to give these traders tools that really help them:
Ignored
This will help them, by allowing them to continue to use their strategies and spend more time trading as opposed getting depressed and complaining on web forums. But mainly it helps me since I have turned to the dark side, consulting with dealers on offsetting risks. The use of this type of hedging will result in lower return on capital for less sophisticated dealers, which means that they will turn to me to raise margins. It also helps everyone else by increasing overall trading volume.
Keep it simple stoopid....
 
 
  • Post #10
  • Quote
  • Nov 6, 2009 5:17pm Nov 6, 2009 5:17pm
  •  Aja
  • | Joined Nov 2009 | Status: Member | 316 Posts
Show me a demo where this works on a AUDNZD grid. (A VERY profitable strategy if properly capitalized with a nano lot broker) - Nuff' Said...
 
 
  • Post #11
  • Quote
  • Nov 6, 2009 6:31pm Nov 6, 2009 6:31pm
  •  7bit
  • Joined Mar 2009 | Status: Member | 1,231 Posts
Quoting Aja
Disliked
Show me a demo where this works on a AUDNZD grid. (A VERY profitable strategy if properly capitalized with a nano lot broker) - Nuff' Said...
Ignored
If I wanted to trade a bidirectional grid i would just instead of opening new buys and sells over and over just close one of the many open sells when i want to buy and close one of the buys when i want to sell and only open new buys when there are no sells left to close and only open new sells when there are no buys left to close. Simple, isn't it? No need for hedging at all!
 
 
  • Post #12
  • Quote
  • Nov 6, 2009 7:58pm Nov 6, 2009 7:58pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
Quoting Aja
Disliked
Show me a demo where this works on a AUDNZD grid. (A VERY profitable strategy if properly capitalized with a nano lot broker) - Nuff' Said...
Ignored
Are you serious ?
Keep it simple stoopid....
 
 
  • Post #13
  • Quote
  • Nov 6, 2009 9:42pm Nov 6, 2009 9:42pm
  •  Aja
  • | Joined Nov 2009 | Status: Member | 316 Posts
Quoting 7bit
Disliked
If I wanted to trade a bidirectional grid i would just instead of opening new buys and sells over and over just close one of the many open sells when i want to buy and close one of the buys when i want to sell and only open new buys when there are no sells left to close and only open new sells when there are no buys left to close. Simple, isn't it? No need for hedging at all!
Ignored
WOW!! - Now why didnt I think off that!? - Open a bunch of SELLS and close them while GBPUSD is shooting up 300 pips all for a nose-bleeding (and foreclosure creating) loss. While my hedged EA contains the loss and all my BUYS are in Vegas-Baby Profit!! - I might carry a floating loss but it'll never impact my balance cause I only cash in the profitable side of the seesaw. (You must work for a broker with math like that) - Sheeesh... I REALLY with you hedge haters would post a link to ANY successful non-hedge gridder. I've read 1000 theories but I havent seen a single working EA yet. (It must be hangin' out with Bigfoot)
 
 
  • Post #14
  • Quote
  • Nov 7, 2009 7:54am Nov 7, 2009 7:54am
  •  7bit
  • Joined Mar 2009 | Status: Member | 1,231 Posts
Quoting Aja
Disliked
I havent seen a single working EA yet. (It must be hangin' out with Bigfoot)
Ignored
Because you haven't seen something doesn't mean it doesn't exist.

* Closing a buy is equivalent to opening a same size sell.
* Closing a sell is equivalent to opening a same size buy.
* It doesn't matter which buy or sell you close first, only the size matters.

These 3 inescapable truths will guarantee that the nfa compliant grid will have the same results as the hedged version. You should concentrate on trying to understand why the above 3 axioms are unquestionable true. I am not going to explain it to you another time, it has all been said and explained a thousand times in a hundred different ways by many smart people in these forums. You have seen these threads, you spammed them already with nonsense, you should better start reading them instead.

And if you are pathological unable to understand such simple self-evident truths and the conclusions they implicate, then i fear you can't be helped. In this case i suggest you shouldn't mess around with currency trading or with anything that involves counting money at all, it could be too complicated for you.
 
 
  • Post #15
  • Quote
  • Nov 9, 2009 1:30pm Nov 9, 2009 1:30pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
This thread got off topic in record time.
Keep it simple stoopid....
 
 
  • Post #16
  • Quote
  • Nov 11, 2009 2:14pm Nov 11, 2009 2:14pm
  •  Kurka Fund
  • Joined Mar 2007 | Status: Member | 437 Posts
Just a heads up. I opened a small ($1000) account to start live testing a new strategy. It uses this type of hedging to capture volatility of the synthetic derivative. Worked great for about a week then I started getting orders rejected with significant frequency. I dont think that the broker likes the 3X exposer without any risk to my account balance. Making a market against a market maker, interesting concept...
Keep it simple stoopid....
 
 
  • Post #17
  • Quote
  • Mar 27, 2010 7:39pm Mar 27, 2010 7:39pm
  •  cosmoras
  • | Commercial Member | Joined Dec 2009 | 44 Posts
Hello,

Regarding your synthetic volatility EA or Strategy, how about Applying it at 2 or 3 different brokers?How are the results so far?
 
 
  • Post #18
  • Quote
  • Last Post: Sep 15, 2010 7:25am Sep 15, 2010 7:25am
  •  surfeur
  • | Joined Jan 2008 | Status: Member | 194 Posts
Quoting Kurka Fund
Disliked
Just a heads up. I opened a small ($1000) account to start live testing a new strategy. It uses this type of hedging to capture volatility of the synthetic derivative. Worked great for about a week then I started getting orders rejected with significant frequency. I dont think that the broker likes the 3X exposer without any risk to my account balance. Making a market against a market maker, interesting concept...
Ignored
Kurka,

why u use the same lots number on the 3x ? Not better with perfect hedge ?

Regards
Ludo
 
 
  • Platform Tech
  • /
  • Synthetic Hedging Script, Conforms to new CFTC regulations
  • Reply to Thread
0 traders viewing now
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 / ©2022