Home
Search Forums
Keywords:
Search Titles Only
User Name:
Exact Match
Show Results As:
Advanced Options
Reply
 
Thread Tools Search this Thread
  #1  
Old Nov 6, 2009 4:23am
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default Synthetic Hedging Script, Conforms to new CFTC regulations

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 Files
File Type: ex4 Kurka - SynHedge.ex4 (9.4 KB, 29 views)
__________________
Keep it simple stoopid....

Last edited by Kurka Fund, Nov 7, 2009 8:24pm
Reply With Quote
  #2  
Old Nov 6, 2009 4:56am
THANK YOU MERLIN,TWEE and FF Team
 
Member Since Mar 2006
Default

I loaded this up in NotePad... That's pretty funny. I HEARBY ACKNOWLEDGE THAT KURKA IS A FOREX GENIUS

Nice script BTW thanks.
__________________
Trade Well and Be Well
Reply With Quote
  #3  
Old Nov 6, 2009 8:10am
Member
 
Member Since Feb 2007
Default zero divide?

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.
Reply With Quote
  #4  
Old Nov 6, 2009 8:16am
7bit's Avatar
Member
 
Member Since Mar 2009
3 Vouchers  349 Posts
Default

Quote:
Originally Posted by Kurka Fund View Post
For example if you want to hedge a long EURUSD position it might SELL EURCHF and BUY USDCHF in proportion to your EURUSD exposure.
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!");
Reply With Quote
  #5  
Old Nov 6, 2009 12:47pm
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default

Quote:
Originally Posted by 7bit View Post
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!");
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....
Reply With Quote
  #6  
Old Nov 6, 2009 12:52pm
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default

Quote:
Originally Posted by smjones View Post
I loaded this up in NotePad... That's pretty funny. I HEARBY ACKNOWLEDGE THAT KURKA IS A FOREX GENIUS

Nice script BTW thanks.
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....
Reply With Quote
  #7  
Old Nov 6, 2009 12:56pm
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default

Quote:
Originally Posted by waltini1 View Post
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.
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....
Reply With Quote
  #8  
Old Nov 6, 2009 1:25pm
7bit's Avatar
Member
 
Member Since Mar 2009
3 Vouchers  349 Posts
Default

Quote:
Originally Posted by Kurka Fund View Post
This script simply gives all the traders that are complaining about how anti hedging laws destroyed their fantastically profitable strategy a working alternative
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.
Reply With Quote
  #9  
Old Nov 6, 2009 4:59pm
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default

Quote:
Originally Posted by 7bit View Post
Maybe it would make sense to give these traders tools that really help them:
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....
Reply With Quote
  #10  
Old Nov 6, 2009 5:17pm
Aja's Avatar
Aja
Member
 
Member Since Nov 2009
Default

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...
Reply With Quote
  #11  
Old Nov 6, 2009 6:31pm
7bit's Avatar
Member
 
Member Since Mar 2009
3 Vouchers  349 Posts
Default

Quote:
Originally Posted by Aja View Post
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...
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!
Reply With Quote
  #12  
Old Nov 6, 2009 7:58pm
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default

Quote:
Originally Posted by Aja View Post
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...
Are you serious ?
__________________
Keep it simple stoopid....
Reply With Quote
  #13  
Old Nov 6, 2009 9:42pm
Aja's Avatar
Aja
Member
 
Member Since Nov 2009
Default

Quote:
Originally Posted by 7bit View Post
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!
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)
Reply With Quote
  #14  
Old Nov 7, 2009 7:54am
7bit's Avatar
Member
 
Member Since Mar 2009
3 Vouchers  349 Posts
Default

Quote:
Originally Posted by Aja View Post
I havent seen a single working EA yet. (It must be hangin' out with Bigfoot)
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.
Reply With Quote
  #15  
Old Nov 9, 2009 1:30pm
Kurka Fund's Avatar
Not your typical MM
 
Member Since Mar 2007
Default

This thread got off topic in record time.
__________________
Keep it simple stoopid....
Reply With Quote
Reply

1 Trader Viewing This Thread (0 are members)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFTC + NFA: End Of Hedging? joselb Trading Discussion 112 Nov 9, 2009 4:37pm
US forex regulations for Japanese lyes Broker Discussion 6 Oct 28, 2009 2:27pm
Synthetic pair Ask/Bid calculation Zmax Trading Discussion 0 Jun 27, 2008 1:54pm
Synthetic data on the EURO. Igrok Trading Discussion 2 Sep 26, 2007 10:37am
Making a synthetic Gbp/Jpy order anthonybaker Trading Discussion 15 May 9, 2007 10:08pm