//+------------------------------------------------------------------+ //| Correlate.mq4 | //| Copyright 2018, pipPod. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2018, pipPod." #property link "https://www.mql5.com/en/users/pippod" #property description"Correlate" #property version "1.30" #property strict #property indicator_separate_window #property indicator_buffers 9 #property indicator_plots 9 //--- plot AUD #property indicator_label1 "AUD" #property indicator_type1 DRAW_LINE #property indicator_color1 clrDarkOrange #property indicator_style1 STYLE_SOLID #property indicator_width1 2 //--- plot CAD #property indicator_label2 "CAD" #property indicator_type2 DRAW_LINE #property indicator_color2 clrAqua #property indicator_style2 STYLE_SOLID #property indicator_width2 2 //--- plot CHF #property indicator_label3 "CHF" #property indicator_type3 DRAW_LINE #property indicator_color3 clrFireBrick #property indicator_style3 STYLE_SOLID #property indicator_width3 2 //--- plot EUR #property indicator_label4 "EUR" #property indicator_type4 DRAW_LINE #property indicator_color4 clrRoyalBlue #property indicator_style4 STYLE_SOLID #property indicator_width4 2 //--- plot GBP #property indicator_label5 "GBP" #property indicator_type5 DRAW_LINE #property indicator_color5 clrSilver #property indicator_style5 STYLE_SOLID #property indicator_width5 2 //--- plot JPY #property indicator_label6 "JPY" #property indicator_type6 DRAW_LINE #property indicator_color6 clrYellow #property indicator_style6 STYLE_SOLID #property indicator_width6 2 //--- plot NZD #property indicator_label7 "NZD" #property indicator_type7 DRAW_LINE #property indicator_color7 clrDarkViolet #property indicator_style7 STYLE_SOLID #property indicator_width7 2 //--- plot XAU #property indicator_label8 "XAU" #property indicator_type8 DRAW_LINE #property indicator_color8 clrGold #property indicator_style8 STYLE_SOLID #property indicator_width8 2 //--- plot USD #property indicator_label9 "USD" #property indicator_type9 DRAW_LINE #property indicator_color9 clrLimeGreen #property indicator_style9 STYLE_SOLID #property indicator_width9 2 //--- #define indicator_handles 8 //--- #property indicator_levelcolor clrLightSlateGray double indicator_level1= 0; double indicator_level2= .2; double indicator_level3= 20; double indicator_level4= 30; double indicator_level5=100; //+------------------------------------------------------------------+ //| Class for indicator and index buffers | //+------------------------------------------------------------------+ /*class CSymbol { private: //--- indicator handles int m_handle; int m_size; //--- buffers double m_buffer[]; public: //--- constructor CSymbol(void):m_handle(INVALID_HANDLE) { ArraySetAsSeries(true); } //--- destructor ~CSymbol(void) { IndicatorRelease(); } //--- set indicator handle int Handle(int handle) { return(m_handle=handle); } //--- get symbol/indicator value double Close(int index) const { return(index>=0 && indexBars(Symbols[i],PERIOD_CURRENT)) barsTotal=Bars(Symbols[i],PERIOD_CURRENT); }*/ /*for(int i=0;i=0 && !_StopFlag;i--) { switch(Indicator) { case INDICATOR_MA: for(int h=0;h=CHARTEVENT_CUSTOM) OnTick(int(dparam+1)); //--- } //+-------------------------------------------------------------------+ //| Create colored currency labels | //+-------------------------------------------------------------------+ void CreateLabels() { //--- currency colors color Color[indicator_buffers]= { indicator_color1,indicator_color2,indicator_color3, indicator_color4,indicator_color5,indicator_color6, indicator_color7,indicator_color8,indicator_color9 }; //--- x coordinates int xStart=4; int xIncrement=24; //--- y coordinates int yStart=16; int yIncrement=0; //--- create all labels for(int i=0;i