Hi All,
Here is the simple EA based on Hedging.
This EA only selling. Maybe somebody can change for buying too.
Thanks, Vlad
Link:
http://www.metatrader.info/node/113
//| Hedging.mq4 |
//| Coders Guru |
//| http://www.forex-tsd.com"" target=_blank rel="nofollow">http://www.forex-tsd.com"</a> target=_blank rel="nofollow"><a href="http://www.forex-tsd.com</a> |
//+------------------------------------------------------------------+
#property copyright "Coders Guru"
#property link "<a href="http://www.forex-tsd.com"
extern string Sym_1 = "EURUSD";
extern string Sym_2 = "USDCHF";
extern double Lots = 1;
extern int Slippage = 5;
bool Sell = true;
//+------------------------------------------------------------------+
int start(){
int cnt,total;
if(Bars<100) {Print("bars less than 100"); return(0);}
total = OrdersTotal(); if(total < 1) {
if(Sell==0) {
RefreshRates(); OrderSend(Sym_1,OP_BUY,Lots,MarketInfo(Sym_1,MODE_ASK),Slippage,0,MarketInfo(Sym_1,MODE_ASK)+1000*Point,"Hedging",1234,0,Green);
RefreshRates();
OrderSend(Sym_2,OP_BUY,Lots,MarketInfo(Sym_2,MODE_ASK),Slippage,0,MarketInfo(Sym_2,MODE_ASK)+1000*Point,"Hedging",1234,0,Green); }
else {
RefreshRates(); OrderSend(Sym_1,OP_SELL,Lots,MarketInfo(Sym_1,MODE_BID),Slippage,0,MarketInfo(Sym_1,MODE_BID)-1000*Point,"Hedging",1234,0,Red);
RefreshRates();
OrderSend(Sym_2,OP_SELL,Lots,MarketInfo(Sym_2,MODE_BID),Slippage,0,MarketInfo(Sym_2,MODE_BID)-1000*Point,"Hedging",1234,0,Red); }
return(0); }
return(0);}
Here is the simple EA based on Hedging.
This EA only selling. Maybe somebody can change for buying too.
Thanks, Vlad
Link:
http://www.metatrader.info/node/113
//| Hedging.mq4 |
//| Coders Guru |
//| http://www.forex-tsd.com"" target=_blank rel="nofollow">http://www.forex-tsd.com"</a> target=_blank rel="nofollow"><a href="http://www.forex-tsd.com</a> |
//+------------------------------------------------------------------+
#property copyright "Coders Guru"
#property link "<a href="http://www.forex-tsd.com"
extern string Sym_1 = "EURUSD";
extern string Sym_2 = "USDCHF";
extern double Lots = 1;
extern int Slippage = 5;
bool Sell = true;
//+------------------------------------------------------------------+
int start(){
int cnt,total;
if(Bars<100) {Print("bars less than 100"); return(0);}
total = OrdersTotal(); if(total < 1) {
if(Sell==0) {
RefreshRates(); OrderSend(Sym_1,OP_BUY,Lots,MarketInfo(Sym_1,MODE_ASK),Slippage,0,MarketInfo(Sym_1,MODE_ASK)+1000*Point,"Hedging",1234,0,Green);
RefreshRates();
OrderSend(Sym_2,OP_BUY,Lots,MarketInfo(Sym_2,MODE_ASK),Slippage,0,MarketInfo(Sym_2,MODE_ASK)+1000*Point,"Hedging",1234,0,Green); }
else {
RefreshRates(); OrderSend(Sym_1,OP_SELL,Lots,MarketInfo(Sym_1,MODE_BID),Slippage,0,MarketInfo(Sym_1,MODE_BID)-1000*Point,"Hedging",1234,0,Red);
RefreshRates();
OrderSend(Sym_2,OP_SELL,Lots,MarketInfo(Sym_2,MODE_BID),Slippage,0,MarketInfo(Sym_2,MODE_BID)-1000*Point,"Hedging",1234,0,Red); }
return(0); }
return(0);}
I was trying a correlation script:
Correlation_script: Friday, May 26, 2006;
From 7:00 AM till 10:00 AM
44-trades, Profit: $2847.19
Vlad
Correlation_script: Friday, May 26, 2006;
From 7:00 AM till 10:00 AM
44-trades, Profit: $2847.19
Vlad
Hi Vlad,
I just came upon this thread. Could you please post the code to the script that you have.
TIA,
dee
I just came upon this thread. Could you please post the code to the script that you have.
TIA,
dee
Hi,
I’m looking for these functions:
Strategies:
1)
For trading 2 pairs: EUR/USD & USD/CHF.
If CHF/USD jump up 2 ticks, sell EUR/USD and vv
If CHF/USD jump down 2 ticks, buy EUR/USD.
If EUR/USD jump up 2 ticks, sell USD/CHF and vv
If EUR/USD jump down 2 ticks, buy USD/CHF.
2)
For trading only 1 pairs: EUR/USD.
If USD/CHF jump up 2 ticks, sell EUR/USD and vv
If USD/CHF jump down 2 ticks, buy EUR/USD but
If EUR/USD jump 2 ticks first don’t trade USD/CHF,
Wait for USD/CHF to jump first.
3)
For trading only 1 pairs: EUR/USD.
If USD/CHF jump up 2 ticks, sell EUR/USD and vv
If USD/CHF jump down 2 ticks, buy EUR/USD.
Trading on the own movement:
If EUR/USD jump up 2 ticks, buy EUR/USD,
If EUR/USD jump down 2 ticks, sell EUR/USD.
Sorry, I can not post my script now.
I’m looking for different approach.
Vlad
I’m looking for these functions:
Strategies:
1)
For trading 2 pairs: EUR/USD & USD/CHF.
If CHF/USD jump up 2 ticks, sell EUR/USD and vv
If CHF/USD jump down 2 ticks, buy EUR/USD.
If EUR/USD jump up 2 ticks, sell USD/CHF and vv
If EUR/USD jump down 2 ticks, buy USD/CHF.
2)
For trading only 1 pairs: EUR/USD.
If USD/CHF jump up 2 ticks, sell EUR/USD and vv
If USD/CHF jump down 2 ticks, buy EUR/USD but
If EUR/USD jump 2 ticks first don’t trade USD/CHF,
Wait for USD/CHF to jump first.
3)
For trading only 1 pairs: EUR/USD.
If USD/CHF jump up 2 ticks, sell EUR/USD and vv
If USD/CHF jump down 2 ticks, buy EUR/USD.
Trading on the own movement:
If EUR/USD jump up 2 ticks, buy EUR/USD,
If EUR/USD jump down 2 ticks, sell EUR/USD.
Sorry, I can not post my script now.
I’m looking for different approach.
Vlad

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Somebody has an simple EA based on correlation?
Could u please send me or post here. Thanks.
What Exactly I’m looking.
Strategy:
If USD/CHF jump up 3 pips, sell EUR/USD
If EUR/USD jump up 3 pips first, sell USD/CHF.
And vv, if USD/CHF jump down 3 ticks, buy EUR/USD;
If EUR/USD jump down 3 pips first, buy USD/CH.
V.S.