
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
I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it. I hope you find my modifications useful.
I added a legend to the display so you would know what color represents what pair.
I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it.I hope you find my modifications useful.MODIFIED SOURCE CODE ATTACHED.
Do you have the original to hand? When I applied the indicator to a chart, MT4 locked up and left me with an egg timer for company.
Look on page 2 of this thread. Piperoni posted it. I just added the display. Wonder if the original worked in the first place?
I think I found the problem:
extern int MaxPeriod = 960;
.
.
.
if (Bars < MaxPeriod) return(0);
//----
for (int i = 0; i < MaxPeriod; i++)
[/code]
It's running 960 times for each pair!!
So I modified it to:
[code]
int limit;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
if (limit > MaxPeriod) {limit= MaxPeriod ;} // TRO
I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it. I hope you find my modifications useful.
I updated the code in my post above.
I am NOT the ORIGINAL author and I am not claiming authorship of this indicator. All I did was modify it.I hope you find my modifications useful.
Super! No egg timer
Correlation EURUSD & USDCHF
I'm writing an EA based on the negative correlation between EURUSD and USDCHF.
I want to use the EA applied only to one chart (e.g EURUSD) , but I want to enter ,from the same EA, 2 order 1 for EURUSD and just after 1 for USDCHF.
Now I succeded entering for example a :
buy EURUSD - sell USDCHF (so opposite orders),
but if I want to enter 2 order in the same direction e.g. Buy EURUSD , Buy USDCHF , the same code let me enter only Buy EurUSD and not USDCHF.
Somebody can help me ?
Thanks in advance
Fabio
?????????????????????????????????????
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Regards
Dan
Hi d0MiN077,
Use forum translation tool:
https://www.mql5.com/en/forum/178632/page26
================
Hi dansmol,
I edited his posts for translation from Swedish to English so we can understand it now.
He was talking about correlation between EURUSD and GBPUSD (sometimes - yes, sometimes no correlation) so I moved his posts to this thread where the members are talking about it.
Some more links about correlation:
Correlation:
- Complex trading system is here and here.
- MultiPairTrend indicators are here;
- Correlation indicators: very good thread with some systems, explanations and good usefull indicators.
- Chart Transposition Indicator: original thread.
- FINEXX Correlation System EA: the thread is here.
- Currency corelation: some theory and articles.
- can someone help me with correlation indicator: small elite section thread.
- trend corelation: discussion thread.
- Correlation Index: indicator.
- CORREL - Pearson's Correlation Coefficient: indicator for excel.
- complimentary pairs: the thread.
- Cross-Currency Strength: good thread with indicators.
- Pearson correlation indicator is on this thread.
- Cluster Indicators are on this thread.
Hi d0MiN077,
Use forum translation tool:
https://www.mql5.com/en/forum/178632/page26
================
Hi dansmol,
I edited his posts for translation from Swedish to English so we can understand it now.
He was talking about correlation between EURUSD and GBPUSD (sometimes - yes, sometimes no correlation) so I moved his posts to this thread where the members are talking about it.
Some more links about correlation:
Correlation:
- Complex trading system is here and here.
- MultiPairTrend indicators are here;
- Correlation indicators: very good thread with some systems, explanations and good usefull indicators.
- Chart Transposition Indicator: original thread.
- FINEXX Correlation System EA: the thread is here.
- Currency corelation: some theory and articles.
- can someone help me with correlation indicator: small elite section thread.
- trend corelation: discussion thread.
- Correlation Index: indicator.
- CORREL - Pearson's Correlation Coefficient: indicator for excel.
- complimentary pairs: the thread.
- Cross-Currency Strength: good thread with indicators.
- Pearson correlation indicator is on this thread.
- Cluster Indicators are on this thread.Thank you very much NEWDIGITAL
Regards
Dan