Custom Index Candles indicator (ICE Dollar index)

Post Reply
User avatar
mlewis
Trader
Posts: 76
Joined: Wed Mar 21, 2012 1:51 pm
Location: London

Custom Index Candles indicator (ICE Dollar index)

Post by mlewis »

Hello,

I've modified the overlay chart indicator so that you can create custom indexes of up to eight pairs.

I made it so that it defaults to the ICE dollar index even though i don't really use that index since I thought it would be of most use to you guys. As default it should be placed on a AUDJPY, otherwise you will have to readjust the charthigh, chartlow, indexhigh and indexlow parameters so that the the candles are placed in the visible part of the screen instead of off screen. I have done it this way so that i can add trendlines to it that do not move relative to the index when the index moves into a new screen range.

I'm a total coding dunce so please correct any idiotic things that i've done with the code if you feel the need.

I'm also desperate to work out how to get a zigzag onto the index so that each zig-zag point displays the % price movement of each pair that makes up the index. If anybody can do this or has any suggestions of things i can try to make this happen i would be VERY grateful!! (i've been trying to do this for months now!!)

anyhow, i hope you find it useful

regards
ML
You do not have the required permissions to view the files attached to this post.
User avatar
mlewis
Trader
Posts: 76
Joined: Wed Mar 21, 2012 1:51 pm
Location: London

Re: Custom Index Candles indicator (ICE Dollar index)

Post by mlewis »

here's what it looks like as the dollar index and as the index that use:
You do not have the required permissions to view the files attached to this post.
User avatar
monkeh
Trader
Posts: 72
Joined: Fri May 04, 2012 2:40 pm

Re: Custom Index Candles indicator (ICE Dollar index)

Post by monkeh »

could you also please share the template, as currently im only getting grey "label" note in the corner and thats it..
User avatar
mlewis
Trader
Posts: 76
Joined: Wed Mar 21, 2012 1:51 pm
Location: London

Re: Custom Index Candles indicator (ICE Dollar index)

Post by mlewis »

how odd... just loaded it back onto a chart to make you the template and i'm getting the same problem. i must have compiled an error into it before posting it but after testing it. Here's my index (which is exactly the same code but with different pairs info, weighting info and index high/index low data). i'll look into why it's died and repost into the first post.
ML
You do not have the required permissions to view the files attached to this post.
User avatar
mlewis
Trader
Posts: 76
Joined: Wed Mar 21, 2012 1:51 pm
Location: London

Re: Custom Index Candles indicator (ICE Dollar index)

Post by mlewis »

okay... i've tracked my problem down to a history problem. the chart only draws if there is history available for every pair in the index. For some reason, i can't access USDSEK data today so that is why my chart isn't drawing (you know when it is drawn but not visible because in the bottom right corner it will give you current price of the index. ie. it will say MJL Custom Index 61.123 or whatever). if this says 0.000000000 then there is a multiply by zero function in the calculations somewhere, ie. there is some data missing from one of the pairs. check that you can view a USDSEK chart. this was my problem. if you change that to USDCAD or whatever does the chart appear? (albeit now in the wrong place).

USDNOK is a good substitute if you also can't get USDSEK.
ML
User avatar
mlewis
Trader
Posts: 76
Joined: Wed Mar 21, 2012 1:51 pm
Location: London

Re: Custom Index Candles indicator (ICE Dollar index)

Post by mlewis »

if you have created your own index or modified the dollar index but can't find the chart simply look at the price as described in the above post and ad two for the index high and subtract 2 for the index low settings. eg. if it says MJL Custom Index 100.3456356 the index high should be 102.3456356 and index low should be 98.3456356.

This will place the chart on the screen (hopefully) and you can fine-tune from there.
Post Reply

Return to “Indicators”