Correlation indicators - page 5

 

nope only two pairs

NO, I looked at that. It calculates correlation between two pairs only and not even that well. Its very laggy due to the fact that it uses moving simple average in the algorithm.

 
 

Repaint ??

Did you notice that almost all indicators on this forum that are calculated on the base of few currency pairs do repaint:

- complex pairs

- Mindex

- Currency strength beta

- Currency strength fast

I wonder why because they are based on MA's as i looked in the code?? Can someone chcenge them to non-repainting indicators??

 

Overlay Chart

Could someone change the attached overlay chart from candles to a line

chart or give me some direction on how to do it

Thank you

Files:
 
toddanderson:
Could someone change the attached overlay chart from candles to a line

chart or give me some direction on how to do it

Thank you

I've just take a overview to the code.

Change

SetIndexStyle( 0, DRAW_HISTOGRAM, DRAW_LINE, 1, BullBarColor );

with

SetIndexStyle( 0, DRAW_LINE, DRAW_LINE, 1, BullBarColor );

Remember, overview, not full view.

 

Is this what you wanted to do?

int init() {

//Initialize Indexes

Prefix = "OverLayChart" + SubSymbol;

IndicatorShortName( "OverLay Chart( " + SubSymbol + " )" );

SetIndexBuffer( 0, ExtMapBuffer1 );

SetIndexBuffer( 1, ExtMapBuffer2 );

SetIndexBuffer( 2, ExtMapBuffer3 );

SetIndexBuffer( 3, ExtMapBuffer4 );

// SetIndexStyle( 0, DRAW_LINE, 1, 0, BullBarColor );

// SetIndexStyle( 1, DRAW_LINE, 1, 0, BearBarColor );

SetIndexStyle ( 2, DRAW_LINE, 0, 0, BullBarColor );

SetIndexStyle ( 3, DRAW_LINE, 0, 0, BearBarColor );

SetIndexEmptyValue( 0, 0.0 );

SetIndexEmptyValue( 1, 0.0 );

SetIndexEmptyValue( 2, 0.0 );

SetIndexEmptyValue( 3, 0.0 );

return( 0 );

}

Files:
overlay.gif  15 kb
 
TheRumpledOne:
Is this what you wanted to do?

A members asked about this by PM

Here you have todd and ...

Test it please.

The idea to just change the histogram with a line becomes a stupid one after read the code

Files:
 

correlation indicators

i'm looking for indicators that show the correlation between commodities like oil and fx market.

please post here.

 

modify Mindex ?

Can somebody modify Mindex indicator so NZD can be appeared in the indicator, please?

Files:
mindex.mq4  2 kb
 

Try it ...

I am not sure that I did it in right way ...

Files:
mindex_1.mq4  2 kb
Reason: