This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
EA based on CorrelationBack to topics list |
|
Peter
2006.05.19 15:27
Hi,
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. |
|
Peter
2006.05.25 15:14
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);} |
|
Peter
2006.05.30 22:18
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 |
|
DeeForex
2006.05.31 04:18
Hi Vlad,
I just came upon this thread. Could you please post the code to the script that you have. TIA, dee |
|
Peter
2006.05.31 14:44
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 |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
