First off all, I want to thank Trader101 for his "price action" method
and to the Trendchaser developing a ea for t101 original method wich
I used to code this HEDGE EA(altrough it is totaly different now)!
Ok...here is how this baby works....
It tracks PA for 6 pairs:AUDUSD;EURJPY;EURUSD;USDCHF;USDJPY;GBPCHF,
while AU,EJ and EU are the buy side, and UC,UJ and GC are sell side.....
I did a lot of research on pairing this HEDGE, and this seems to be the
best pairing. This is not a standard hedge method, cos I want to buy or sell
all pair at the time!!! The best thing about this method is that if EA or you
makes a bad decision, you will not lose much becouse this pairs are negatively correlated pairs,
and you are heavely hedged!
On the other hand, when you catch a group movement in same direction,
you will make a serious bucks.
Explanation of external variables:
extern string _____MAIN_FUNCTIONS_____;
extern bool TradeAllowed=true;
extern int MagicNumber=1803;
extern double MaxRisk = 0.3;
extern double Lot= 0.1;
extern string _____LIMITING_FUNCTIONS_____;
extern int StartLockPips=50;
extern int ScalpProfitPips=50;
extern int AccountCutoff=-100;
extern string _____PRICE_ACTION_FILTERS_____;
extern int tf=5; \\ tf used for all calculations and one indicator
extern int LookBack1= 6; \\ lookback= tf # lookback....5#6=30min\30TF
extern int LookBack2= 12;\\1hr tf
extern int LookBack3= 24;\\2hr tf
extern int LookBack4= 48;\\4hr tf
extern double Filter1= 500;\\ difference in pips betwen buy and sell side
extern double Filter2= 1000;
extern double Filter3= 2000;
extern double Filter4= 4000;
extern string _____TRIGGERING_FILTERS_____;
extern bool UseFilters= true; \\slope direction line modified/trigger
extern int TrigPeriod= 6;
extern int TrigMethod= 3;
extern int TrigPrice= 0;
extern string _____TRADING_HOURS_LIMIT_____;
extern int StartTradingHour=08;
extern int EndTradingHour=22;
In picture here, you see a 4 lines...(spips and lpips), these are a price action of all the pairs
in hedge....spips for short pairs, lpips for long pairs......if you have a "big" positive difference
in pips for the all TFs, you are ready to trade.....that is the meaning of 4 filters and variables.
You want a difference betwen 2 sides of hedge about some 500,1000,2000 and 4000 pips for TFs.
The other thing to look at is the green and orange points...each line represents one tf.....
what you want is to have all the green dots and orange dots for the all tfs to be in perfect position,
first 3 lines green, and last 3 dots orange(for buy) and reversed for sell.
You can mannualy execute comands by simply draging the all longs\shorts and closeall and close half!!!
edit: version 2\now works with mini accounts\
add m suffix to pairs....fixed some minor errors
and to the Trendchaser developing a ea for t101 original method wich
I used to code this HEDGE EA(altrough it is totaly different now)!
Ok...here is how this baby works....
It tracks PA for 6 pairs:AUDUSD;EURJPY;EURUSD;USDCHF;USDJPY;GBPCHF,
while AU,EJ and EU are the buy side, and UC,UJ and GC are sell side.....
I did a lot of research on pairing this HEDGE, and this seems to be the
best pairing. This is not a standard hedge method, cos I want to buy or sell
all pair at the time!!! The best thing about this method is that if EA or you
makes a bad decision, you will not lose much becouse this pairs are negatively correlated pairs,
and you are heavely hedged!
On the other hand, when you catch a group movement in same direction,
you will make a serious bucks.
Explanation of external variables:
extern string _____MAIN_FUNCTIONS_____;
extern bool TradeAllowed=true;
extern int MagicNumber=1803;
extern double MaxRisk = 0.3;
extern double Lot= 0.1;
extern string _____LIMITING_FUNCTIONS_____;
extern int StartLockPips=50;
extern int ScalpProfitPips=50;
extern int AccountCutoff=-100;
extern string _____PRICE_ACTION_FILTERS_____;
extern int tf=5; \\ tf used for all calculations and one indicator
extern int LookBack1= 6; \\ lookback= tf # lookback....5#6=30min\30TF
extern int LookBack2= 12;\\1hr tf
extern int LookBack3= 24;\\2hr tf
extern int LookBack4= 48;\\4hr tf
extern double Filter1= 500;\\ difference in pips betwen buy and sell side
extern double Filter2= 1000;
extern double Filter3= 2000;
extern double Filter4= 4000;
extern string _____TRIGGERING_FILTERS_____;
extern bool UseFilters= true; \\slope direction line modified/trigger
extern int TrigPeriod= 6;
extern int TrigMethod= 3;
extern int TrigPrice= 0;
extern string _____TRADING_HOURS_LIMIT_____;
extern int StartTradingHour=08;
extern int EndTradingHour=22;
In picture here, you see a 4 lines...(spips and lpips), these are a price action of all the pairs
in hedge....spips for short pairs, lpips for long pairs......if you have a "big" positive difference
in pips for the all TFs, you are ready to trade.....that is the meaning of 4 filters and variables.
You want a difference betwen 2 sides of hedge about some 500,1000,2000 and 4000 pips for TFs.
The other thing to look at is the green and orange points...each line represents one tf.....
what you want is to have all the green dots and orange dots for the all tfs to be in perfect position,
first 3 lines green, and last 3 dots orange(for buy) and reversed for sell.
You can mannualy execute comands by simply draging the all longs\shorts and closeall and close half!!!
edit: version 2\now works with mini accounts\
add m suffix to pairs....fixed some minor errors
Attached Image
Attached File(s)
SDLMod.ex4
4 KB
|
1,971 downloads
JAGUAR©HEDGE V2.ex4
49 KB
|
2,107 downloads
|
Uploaded Jan 5, 2009 1:27am
forexflash