› 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 7, 2015 at 2:55 am #9991
Hi bro Simplex,
Could you please see images below … 2 pictures are taken for date 03-04, 2015 and 03-07,2015 on M30 EURUSD. And also the same for M15. As we can see, the index lines last week (03-04, 2015) are “widening” because of Drachi’s news … But today, they are changed, they are “narrowing” after i restart the MT4 (it will still “widening” if i do not restart the MT4 platform).
Questions :
*) Is this normal ?
*) Is the “reference point: day in the past” acts as the “anchoring” ? It means, we can use session or weekly closed as the reference too …Thanks in advance
Edit: This is happened to both your CIX_v1 and my modified version …
-
This reply was modified 10 years, 6 months ago by
smallcat.
Attachments:
You must be logged in to view attached files.December 7, 2015 at 3:04 am #9997Thanks. Installed and having problems, changing TF’s indicator lines disappear. G.
Thanks for this bug reporting G. I am not so sure, but i think because of there is still “no saved buffer” yet for that TF. After restart, i think it should be ok, and next time (in the future) after the saved buffer is there (because we have opened the indicator at that TF minimal once), i think it will be no problem anymore.
Anyway, I will look at my code again ….December 7, 2015 at 11:19 am #10012Getting “weired” results with CIX indicator.
Green/White is USD/NZD in CIX indicator.
Green/Blue is USD/NZD, White is the Diff in ForexGT_Spaghetti indicator.
I marked the Crosses on the ForexGT_Spaghetti, and there is rarely correlation between the two, in both direction and Strength.
G.
Attachments:
You must be logged in to view attached files.December 7, 2015 at 7:45 pm #10029December 7, 2015 at 8:30 pm #10037Hi smallcat:
Is this normal ?
Is the “reference point: day in the past” acts as the “anchoring” ? It means, we can use session or weekly closed as the reference too …
Yes, this is the anchor in the time dimension against which the CS values are calculated. If some news like Mario’s press conference are drifting out of this lookback window, the picture may change dramatically. If you want a certain image to remain constant, you got to place this reference point on exactly the same date in both cases.
This is not yet optimal in this version of the indicator.
So without knowing exactly which parameters you used I can only speculate what caused the change on your platform.
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 7, 2015 at 8:37 pm #10038Getting “weired” results with CIX indicator.
…
I marked the Crosses on the ForexGT_Spaghetti, and there is rarely correlation between the two, in both direction and Strength.
Same case as in my reply to smallcat: without runtime details including date & time I can only speculate.
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 7, 2015 at 10:09 pm #10039Getting “weired” results with CIX indicator. … I marked the Crosses on the ForexGT_Spaghetti, and there is rarely correlation between the two, in both direction and Strength.
Same case as in my reply to smallcat: without runtime details including date & time I can only speculate. s.
Default params except all other currencies set to color “none”.
G.
December 8, 2015 at 10:48 am #10066Thanks:
Default params except all other currencies set to color “none”.
In this version of the indicator, the input parameter ‘reference point’ needs to be set to a meaningful point. OOTB does not make sense in all cases.
Please see source code for details.
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 8, 2015 at 11:15 am #10074Thanks:
Default params except all other currencies set to color “none”.
In this version of the indicator, the input parameter ‘reference point’ needs to be set to a meaningful point. OOTB does not make sense in all cases. Please see source code for details. s.
It so happened that the default was last week close, meaningfull to me.
G.
December 11, 2015 at 11:45 pm #10254Try making a new index for the USD, instead of the USDx, which is based on the US trade balance.
This new one is based on all Forex majors, with equal factor to each one, and use it on the CIX. Please post the indicator, if you’ll make it, for comparison and remarks.
G.
December 12, 2015 at 11:41 am #10269oh thanks please will have to try that one cause i only trade with correlator
many thanks
GILBERT
December 13, 2015 at 6:07 pm #10304This new one is based on all Forex majors, with equal factor to each one, and use it on the CIX. Please post the indicator, if you’ll make it, for comparison and remarks.
I’m happy that you changed your mind. This is what I proposed (and coded) several weeks ago, and you did not seem to like it.

See my next post for details and a new version.
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 13, 2015 at 6:19 pm #10305Ok guys!
Next public version of my CIX, including source code. I consider this one much more mature than the initial version 1, published several weeks ago. Especially the session reset algorithm is now working every day, not only once.
It also includes an alternate RSI normalization to choose from, alongside with my timeframe based normalization algo.
There may still be some minor issues. When you have insufficient price history, you ‘might’ run into a runtime error. I must assume, that this specific part is kind of quick and dirty coding (sorry!). If anyone figures out a proper workaround, please post or send me via PM!
Any feedback and suggestions welcome! Please tell us how this works for you!
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 13, 2015 at 7:23 pm #10309@gg53: [quote quote=10254]This new one is based on all Forex majors, with equal factor to each one, and use it on the CIX. Please post the indicator, if you’ll make it, for comparison and remarks.
I’m happy that you changed your mind. This is what I proposed (and coded) several weeks ago, and you did not seem to like it.
See my next post for details and a new version. s. [/quote]I didn’t test your indie until lately because the lack of “suffix”.
I haven’t changed my mind. Something is not right with the USDx version OOTB, as I showed you in comparison pics.
G.
December 14, 2015 at 1:38 am #10314Ok, those mysterious symbol prefix and suffix again! I never understood why some brokers pretend to use them, or why some traders are choosing those brokers.

This is a quick patch, version 2.1 showing input parameters for symbol prefix and suffix.
Request for test: please would somebody who is connected to a broker with symbol prefix / suffix check the indicator for this feature and report back? I don’t want to open some demo that I don’t require just to test a feature I don’t need, so I can’t check this.
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 4:26 am #10317Hey guys, I’m back after a while… I don’t use indicators like this but I’ll try this one. Thanks simplex. I will try to test it but same problem as you, i don’t use brokers with suffix. It’s nonsense. :D
-
This reply was modified 10 years, 6 months ago by
George.
December 14, 2015 at 4:47 am #10319Ok, those mysterious symbol prefix and suffix again! I never understood why some brokers pretend to use them, or why some traders are choosing those brokers.
This is a quick patch, version 2.1 showing input parameters for symbol prefix and suffix. Request for test: please would somebody who is connected to a broker with symbol prefix / suffix check the indicator for this feature and report back? I don’t want to open some demo that I don’t require just to test a feature I don’t need, so I can’t check this. s.Brokers, even big and reputable ones, are using those prefix/suffix for various reasons, such as distinguishing between regular on mini accts (EYRUSD.m), or between fixed spread (commission added) & regular spread (no commission), and more…
G.
December 14, 2015 at 4:50 am #10320Hmm, yeah it’s like that. I forget. Umm, but still.. When you choose your broker, i guess you must know what broker you using, if you have mini account or things like that.
December 14, 2015 at 4:59 am #10321It’s working with my broker (added “.x” suffix). Didn’t check/validate/compare functionality.
Changing from H1 to H4 – indicator lines diappear:
Expert tab says: “2015.12.14 07:03:25.460 CIX_v_2_1_post GBPUSD.x,H4: array out of range in ‘CIX_v_2_1_post.mq4’ (415,6)”
All are default params and OOTB.
G.
Attachments:
You must be logged in to view attached files.December 14, 2015 at 11:04 am #10334@gg53: thanks for testing and reporting!
- array out of range: there’s obviously insufficient history in one of the symbols involved on your system. I’ll add a history check in a future version. Meanwhile you can reduce ‘maximum bar count’ to avoid this error.
- lines ‘disappear’: this is caused by the session reset algorithm. You might consider changing parameter ‘window method’ to ‘continuous window’ at least for all timeframes greater than M15, or for all timeframes if preferred.
- This indicator is coded to provide a certain flexibility, regarding future modifications and regarding its usage. So OOTB is not always the best choice.
I also noticed that the indicator seems to use a high amount of cpu resources. Will look after that!
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 14, 2015 at 11:17 am #10335Hahaaaa: a true newbie bug in this version, which caused that high cpu resource consumption!
Who can find it?
Will be fixed in next release, to come soon.
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 14, 2015 at 11:48 am #10336Who can find it?
if (prev_calculated == 0) ?
or is that meant to run every tick
oh maxbars isnt used in the loop. also i like to do this in case they dont have enough history for the maxbars set
if (maxBars>limit-1)maxBars=limit-1;
“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 14, 2015 at 1:48 pm #10339@Lowphat: not quite, but you’re close!

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 5:24 pm #10344December 14, 2015 at 5:55 pm #10347the setAllRaw functions are eating up big chunks.
all the loops seem odd. i would have to rewrite it to how im use to seeing it.
prev_calculated == 0 still seems strange. it runs every tick for 46 ticks and quits but the prev_calculated is still 0 when it quits wtf.
“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 Jones -
This reply was modified 10 years, 6 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.