Experts: 2-Pair Correlation EA – Free Expert Advisor for Safe and Profitable Crypto Trading!

 

2-Pair Correlation EA – Free Expert Advisor for Safe and Profitable Crypto Trading!:

2-Pair Correlation EA – Free, Adaptive Crypto Trading Automation The 2-Pair Correlation EA is a free Expert Advisor that trades BTC/USD and ETH/USD, capitalizing on their price correlation. The EA opens trades when the pairs diverge and closes them as they realign, automating your trading with minimal effort. Key features: Dynamic Lot Sizing: Automatically adjusts based on account balance and risk settings. ATR Volatility Control: Pauses trading during high market volatility. Drawdown Protection: Stops trading if your account hits a drawdown limit and resumes once the account recovers. Customizable Settings: Adjust risk levels, slippage, and profit targets to fit your style.

Author: Sassan Mohammadi

 
Thank you for your effort for contribution. I will test the EA. Please advise what the timeframe is for 2 pairs.
 

Than you Sassan. I-m testing and always I get the message "Hight volatility detected. Pausing trades for safety". I think BTC will be high volatile. Then, what do you think? Regards.

 
Looks interstingÇ-but got these errors when comiling
'CTrade' - unexpected token, probably type is missing? Trade.mqh
'trade' - semicolon expected Trade.mqh 16 8
'CTrade' - unexpected token, probably type is missing?
'trade' - semicolon expected CORR.mq5 3 8
'OnTick' - function already defined and has body 166 6
declaration of 'lotSize' hides global variable 18 12
'trade' - undeclared identifier CORR.mq5 107 13
'trade' - undeclared identifier CORR.mq5 144 9
'trade' - undeclared identifier CORR.mq5 145 9
'trade' - undeclared identifier CORR.mq5 155 9

Most I can sort but dont understand first

Regards

Chris

 
While I think the BTC/ETH idea has merit, I cannot see a way to have this code generate a trade regardless of their divergence. Cheers.
 
IT DIDN'T WORK. IT GIVES ON EXPERT FOLDER WARNING EVERY SEC'
 
Alon Daniel #:
IT DIDN'T WORK. IT GIVES ON EXPERT FOLDER WARNING EVERY SEC'

Of course this code does not work! 


The author is passing the value of Slippage, as the StopLoss parameter to the Buy/Sell function, completelly wrong! 

The for-loop to close all profit positions is a joke, the "i" value is never used to select any position, it just sums the profit value of the same position over itself. 

The divergence value, is the subtraction of Ethereum over Bitcoin (it is like compare apples to oranges, makes no sense at all, since those cryptos have different amplitude, it would requer at least to normalize those values under certain period)

ATR is useless too, since it uses the same "level" to both cryptos (eg: ATR for bitcoin will be like 1280.78 at some moment, and for ethereum will be like 5.23 at the same moment, [considering the fixed M5 Timeframe it is using hardcoded], so again, subtracting apples from oranges, makes no sense)

The stoploss value, declared internally as "50" is never used, and if it would be used, would make absolutelly no sense too. 50 what? (there is no adequation in points nor decimal cases of both cryptos). 


It contains other horrible things as the calculated LOT value to open positions, that I prefer not to mention... (the code would like to open about a LOT of hundreds for bitcoin, etc..) Completely bizarre and non-working risk calculation, etc.; 


the code is a joke, erase it. 

 
The code is a joke! Please erase it from here! Learn how to code, and read my comments. Lets not create ilusion for people here.. If you need help learning to code, ask for help.. :)