› Forums › Trading Systems Discussion › A Flexible And Compact Currency Strength Indicator
Tagged: CIX
- This topic has 270 replies, 23 voices, and was last updated 8 years, 10 months ago by
upliftingmania.
- AuthorPosts
- December 14, 2015 at 7:27 pm #10349
This indicator keep on ‘shouting’.. I guess that is the problem..
Not really – this is caused by the bug, but it’s not the reason for the bug.
all the loops seem odd.
I don’t think so!
prev_calculated == 0 still seems strange.
No, this
ifis intended to perform calculations that only should run when loading the indicator, and not on every tick.@ ALL:
Let’s clear up the mystery: at the end of function
OnCalculate, I codedreturn(0);instead ofreturn(rates_total);– that’s all. Please refer to this article of the MQL4 documentation for details about using rates_total.It happened when I migrated the indicator from old school mql
int start()to MQL5-like syntaxint OnCalculate().In a few minutes, I’ll post a debugged and upgraded version.
s.
-
This reply was modified 10 years, 6 months ago by
simplex.
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
December 14, 2015 at 7:45 pm #10352CIX version 2.2 here:
- fixed bug that caused extremely high cpu consumption
- added feature to check for sufficient bar history of all symbols involved
- added feature to display only current symbol including differential line
Hope that this new version will make some of you happy!
@gg53: by the way, since version 2.0 OOTB choice of parameter index algorithm is USD majors even, according your suggestion of last weekend and my suggestion of October or November – I don’t remember the exact date.Enjoy, and every feedback and mod welcome.
Please report bugs, if you find some.
s.
Attachments:
You must be logged in to view attached files.A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
December 14, 2015 at 8:31 pm #10359prev_calculated == 0 still seems strange.
No, this
ifis intended to perform calculations that only should run when loading the indicator, and not on every tick.not the command itself but the way it ran. return 0 must have broke prev_calculated. that’s why it kept running the print statement over and over until the Start loop pooped
anyways the adjustable reset is cool to play with. its always fun to code a base str spaghetti
one of the options i did with mine was to add (baseCurrency1[Bid]-baseCurrency1[i+1]) to (baseCurrency2[Bid]-baseCurrency2[i+1]) and make rate of change synthetic line. i see your difference line now which would be close to the same i think.
mine looked interesting but im not sure it was any more useful than a QQE.
-
This reply was modified 10 years, 6 months ago by
Lowphat. Reason: not init but start loop
“I believe the very best money is made at the market turns. Everyone says you get killed trying to pick tops and bottoms and you make all
your money by playing the trend in the middle. Well for twelve years I have been missing the meat in the middle but I have made a lot of
money at tops and bottoms.”
– Paul Tudor JonesDecember 20, 2015 at 3:34 pm #10595Thanks for your persistent efforts on this Simplex!
December 20, 2015 at 3:38 pm #10597Hi Guys! As announced in the Forex Plumber Thread started by gg53 (see http://penguintraders.com/forums/topic/the-forex-plumber/page/2/#post-7864) I’ll post my modification of that FXcorrelator indicator published by NVP in the trade2win forum. See Forex Plumber thread for links to the origin. As suggested by gg53, my first step was to replace NVP’s original arithmetics by a simple Rate of Change. Then I worked the whole code over in order to make it more flexible when it comes to switching to completely different arithmetics. I finished that barebone by implementing a final SuperSmoother averaging according to John Ehlers. As a final step I included 3 more arithmetics to choose from – just as examples to get a discussion started. These are:
- Hans Hannula’s PFE (Polarized Fractal Efficiency)
- My personal PFE mod, transforming it from a Close-Close pricefield to High-Low
- A symmetric Money Flow Index
These were the first ones that came to my mind. Oh yes – and I changed the line colours to my preferences, which work very nicely on a dark grey background. The lines of the current pair will be a bit wider than the rest. The PFE concept was published in TASC, titled “Polarized Fractal Efficiency” – you’ll find it if you’re interested in some conceptual background! Looking at the indicator, I somehow sadly have say that the original PFE seems to be superior to my mod
Money Flow Index incorporates a volume component in its base algorithm, but I’m not so sure whether this is really suitable for our purpose. Check it out! Now feel free to test, to modify, and to post your comments and suggestions! If posting suggestions for additional arithmetics or for implementing a volume calculation – please be specific and provide some detail! Cheers & have fun! simplex EDIT 2015-10-05: New, adaptive version in this post: http://penguintraders.com/forums/topic/a-flexible-and-compact-currency-strength-indicator/page/2/#post-8237 EDIT 2015-10-07: Version 1.1 in this post: http://penguintraders.com/forums/topic/a-flexible-and-compact-currency-strength-indicator/page/2/#post-8262 EDIT 2015-10-14: Version 2.0 and Session_Correlator in this post: http://penguintraders.com/forums/topic/a-flexible-and-compact-currency-strength-indicator/page/5/#post-8407Hi Guys! As announced in the Forex Plumber Thread started by gg53 (see http://penguintraders.com/forums/topic/the-forex-plumber/page/2/#post-7864) I’ll post my modification of that FXcorrelator indicator published by NVP in the trade2win forum. See Forex Plumber thread for links to the origin. As suggested by gg53, my first step was to replace NVP’s original arithmetics by a simple Rate of Change. Then I worked the whole code over in order to make it more flexible when it comes to switching to completely different arithmetics. I finished that barebone by implementing a final SuperSmoother averaging according to John Ehlers. As a final step I included 3 more arithmetics to choose from – just as examples to get a discussion started. These are:
- Hans Hannula’s PFE (Polarized Fractal Efficiency)
- My personal PFE mod, transforming it from a Close-Close pricefield to High-Low
- A symmetric Money Flow Index
These were the first ones that came to my mind. Oh yes – and I changed the line colours to my preferences, which work very nicely on a dark grey background. The lines of the current pair will be a bit wider than the rest. The PFE concept was published in TASC, titled “Polarized Fractal Efficiency” – you’ll find it if you’re interested in some conceptual background! Looking at the indicator, I somehow sadly have say that the original PFE seems to be superior to my mod
Money Flow Index incorporates a volume component in its base algorithm, but I’m not so sure whether this is really suitable for our purpose. Check it out! Now feel free to test, to modify, and to post your comments and suggestions! If posting suggestions for additional arithmetics or for implementing a volume calculation – please be specific and provide some detail! Cheers & have fun! simplex EDIT 2015-10-05: New, adaptive version in this post: http://penguintraders.com/forums/topic/a-flexible-and-compact-currency-strength-indicator/page/2/#post-8237 EDIT 2015-10-07: Version 1.1 in this post: http://penguintraders.com/forums/topic/a-flexible-and-compact-currency-strength-indicator/page/2/#post-8262 EDIT 2015-10-14: Version 2.0 and Session_Correlator in this post: http://penguintraders.com/forums/topic/a-flexible-and-compact-currency-strength-indicator/page/5/#post-8407December 20, 2015 at 3:45 pm #10598Hi Simplex
great indi!
your fxcorr would be better to read and interpret, if I could change (turn on and off) the other colours which belong to pairs not shown on the particular chart.
I hope you can modify it in this manner.
Thank you very much! seee chart here https://www.mql5.com/en/charts/4380877/audjpy-m30-etx-capital
Wolf
December 20, 2015 at 4:22 pm #10600Thanks!
great indi!
I would say dump fxcorr and take CIX published here instead. It’s all in there!
s.
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
December 26, 2015 at 4:17 pm #10845Nice work Simplex.
January 26, 2016 at 12:47 pm #11307Just a quick note about links to be studied and possibly used for coding later:
http://www.cutthespread.com/spread-betting/does-us-dollar-index-reflect-current-reality
http://www.cutthespread.com/spread-betting/proposal-rebalanced-us-dollar-index
http://www.cutthespread.com/spread-betting/proposal-euro-index
Thoughts about a rebalanced USD Index appear to be interesting!
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
January 26, 2016 at 3:04 pm #11312Just a quick note about links to be studied and possibly used for coding later: http://www.cutthespread.com/spread-betting/does-us-dollar-index-reflect-current-reality http://www.cutthespread.com/spread-betting/proposal-rebalanced-us-dollar-index http://www.cutthespread.com/spread-betting/proposal-euro-index Thoughts about a rebalanced USD Index appear to be interesting!
Yeah, similiar articles made me make my own USDx indicator, already posted.
Thanks for the links, more readings…
G.
June 24, 2016 at 9:04 am #12709#BREXIT @ CIX
They really did it in their glorious little island … I did not expect that.
How does CIX reflect the British exit decision intraday?
- GBP down -1050 points and recovering towards -600 points.
- EUR down -120 points and recovering back to normal (yesterday’s open).
- USD up +200 points and stabilizing at +100 points.
- JPY up +500 points and stabilizing at +220 points.
- AUD and NZD temporarily affected slightly downwards, restabilizing.
- CAD and CHF with no major reactions.
That’s about it. See pic for details.
Now say Good bye, London, and soon: Welcome, Edinburgh! Maybe in a few years we will call the former London Session the Frankfurt Session.
s.
Attachments:
You must be logged in to view attached files.A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
July 4, 2016 at 4:21 pm #12746Great work Simplex!
Have you thought of big news events to synchronize the currency components?
For example, when brexit happened, we saw how all the currencies reacted. I think this move showed how GBP is correlated with every other currency. I think from this, you should be able to extract a constant (that might only move so slightly) that can be used to find value of each currency. I haven’t had the time to test this theory but in my head it makes sense

Focus, Patience, Determination & Order in chaos
July 4, 2016 at 5:48 pm #12749Hi Saver!
Good to see you back again!
I’m not sure what you mean exactly by ‘synchronize’.
I tried to spot correlation between currencies with CIX. There ARE currency correlations around news events, but:
- not always in the same direction
- not always the same pairs
I think for digging deeper here we would have to leave the field of pure Technical Analysis and bring in some fundamentals. I think the nature of the news is relevant here. Impossible to automate based on the data we have from TA and FF news calendar.
My current news related thought is to suspend any trading (all pairs) when high impact news occur. I saw even NZD news shaking GBPUSD around. And we should not count on everybody buying JPY to escape from GBP investments like the day after BREXIT. It’s just not the case all the time.
Alternative: place a buy stop and a sell stop before news and see which one is triggered. Not really my cup of tea, though.
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
July 5, 2016 at 12:20 am #12750What I mean is the following. Lets take for example what you witnessed: “I saw even NZD news shaking GBPUSD around.”
What you saw is how NZD news affects GBPUSD. The ratios of the price change between NZDUSD and GBPNZD and GBPUSD should give an indication as to the “value” of NZD priced into GBPUSD. It’s difficult to explain what’s in my head.. I assume NZDUSD and GBPNZD moved by different pip amounts. In reality, GBPUSD shouldn’t have had any affect yet you saw it move as well. This move in GBPUSD has to have some correlation with NZD and the ratio of this move I think can be used to calculate value during normal times. I will have to test this out when I have time. Also, what we know is that the price must always go back to “value”. In theory, we should be able to trade mismatches between price and value.
Focus, Patience, Determination & Order in chaos
July 5, 2016 at 1:20 am #12751What I mean is the following. Lets take for example what you witnessed: “I saw even NZD news shaking GBPUSD around.” What you saw is how NZD news affects GBPUSD. The ratios of the price change between NZDUSD and GBPNZD and GBPUSD should give an indication as to the “value” of NZD priced into GBPUSD. It’s difficult to explain what’s in my head.. I assume NZDUSD and GBPNZD moved by different pip amounts. In reality, GBPUSD shouldn’t have had any affect yet you saw it move as well. This move in GBPUSD has to have some correlation with NZD and the ratio of this move I think can be used to calculate value during normal times. I will have to test this out when I have time. Also, what we know is that the price must always go back to “value”. In theory, we should be able to trade mismatches between price and value.
Nice to see you around friend :)
July 5, 2016 at 7:37 am #12753What you saw is how NZD news affects GBPUSD. The ratios of the price change between NZDUSD and GBPNZD and GBPUSD should give an indication as to the “value” of NZD priced into GBPUSD.
Interesting thought. If we follow up on this, let’s not forget that the strength of bonding (economic, political, …) between any two currencies will also play a major role, if not the most important one. Relationships between currencies are certainly multi-dimensional, and it won’t be easy (if not impossible) to calculate whether the amplitude of a certain price move during third party news events is caused by a certain ‘value’ of a currency, or the strength and quality of their economic or political relationship, or totally different factors.
I will certainly follow your thoughts with great interest, but I believe that we will not be able to solve these equations with many parameters based on the information we have from our charts and an FF calendar.
I assume NZDUSD and GBPNZD moved by different pip amounts.
Sure, that’s correct most of the time. But please let’s keep in mind that pure pip counting is arithmetically absolutely irrelevant here. Relative price change, current level compared to previous level, is what counts.
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
July 6, 2016 at 5:32 pm #12757@ simplex
thx for this great helpful tool , i use it constantly :)
April 15, 2017 at 4:29 pm #13770sorry for how long this reply is but going back over some of the indys in my MT and cix 2.2 gets an
CIX_v_2_2_post EURCADpro,H4: array out of range in ‘CIX_v_2_2_post.mq4’ (499,6)
CIX_v_2_2_post EURCADpro,H4: OnCalculateINSUFFICIENT PRICE HISTORY: bars to display will be reduced from 2000 to -2261.
CIX_v_2_2_post EURCADpro,H4: OnCalculateMaximum history reduced to: 3843
when i set to use CIX_NORM_RSI and a high rsiPeriod like 50 or 100
perhaps i cant get enough history for the settings :( .is there an easy edit i can do to fix?
“I believe the very best money is made at the market turns. Everyone says you get killed trying to pick tops and bottoms and you make all
your money by playing the trend in the middle. Well for twelve years I have been missing the meat in the middle but I have made a lot of
money at tops and bottoms.”
– Paul Tudor JonesApril 19, 2017 at 10:05 am #13798Hi Lowphat!
Did you provide proper ‘symbol suffix’ input parameter? Looks like your account requires a ‘pro’ here.
Best, s.
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
April 20, 2017 at 7:54 pm #13806yes i have the suffix entered. it draws with low rsi period but not a high one. when i put a number in deltaInit += i can get it to draw with a higher rsiPeriod though. what im trying to do is see a much higher period/time-frame strength to see how useful it is in going in that direction only for supply demand or other methods. im going to try and call it from icustom with some old forextsd multi time-frame code and see how bad it is on my CPU

“I believe the very best money is made at the market turns. Everyone says you get killed trying to pick tops and bottoms and you make all
your money by playing the trend in the middle. Well for twelve years I have been missing the meat in the middle but I have made a lot of
money at tops and bottoms.”
– Paul Tudor JonesApril 20, 2017 at 8:38 pm #13807the icustom shows mtf without having to use the super high Period RSI normalization so you can ignore the messages above :)
Attachments:
You must be logged in to view attached files.“I believe the very best money is made at the market turns. Everyone says you get killed trying to pick tops and bottoms and you make all
your money by playing the trend in the middle. Well for twelve years I have been missing the meat in the middle but I have made a lot of
money at tops and bottoms.”
– Paul Tudor JonesJuly 28, 2017 at 9:48 am #14051Hi Simplex,
Thankyou for all your efforts in developing this excellent indicator. It is definitely more responsive than the previous relative currency strength indicator that I was using (CCFP).
I do have a bug to report or at least I believe that it is a bug.
Bug —> Line ‘width’ and Line ‘Style’ modifications do not take effect under the ‘Colors’ tab, when the ‘Final smoothing line’ option is set to low values such as ‘0’ ,’2′ etc.
I have attached a screen shot of my settings under the ‘input’ tab i.e. for testing purposes.
For clarity – I have also attached another image to show the desired changes I am expecting to have an effect on the indicator lines.
-
This reply was modified 8 years, 10 months ago by
upliftingmania.
-
This reply was modified 8 years, 10 months ago by
upliftingmania. Reason: Added info for clarity
Attachments:
You must be logged in to view attached files. -
This reply was modified 10 years, 6 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.