_TRO_Multi_Meter_Low

Download script
_TRO_Multi_Meter_Low

The _TRO_Multi_Meter_Low script is a visual dashboard designed to help traders monitor price trends across multiple timeframes simultaneously. Instead of forcing you to switch between different charts (like moving from a 5-minute chart to a 4-hour chart), this tool aggregates that data into a single, easy-to-read display on your current screen.

How It Works

The logic of the script follows a three-step process: Data Collection, Analysis, and Visual Display.

1. Multi-Timeframe Data Collection

The script automatically scans nine different timeframes at once:

  • Short-Term: M1 (1 minute), M5 (5 minutes), M15 (15 minutes), and M30 (30 minutes).
  • Medium-Term: H1 (1 hour) and H4 (4 hours).
  • Long-Term: D1 (Daily), W1 (Weekly), and MN1 (Monthly).

For each of these timeframes, the script looks at the "Low" price—the lowest point reached during a specific candle—comparing the current candle to the one immediately preceding it.

2. Trend Analysis

Once the script has gathered these "Low" prices, it performs a simple comparison to determine the direction of the price movement:

  • Upward Trend: If the current low is higher than the previous low, the script identifies an upward movement.
  • Downward Trend: If the current low is lower than the previous low, it identifies a downward movement.
  • Neutral/Equal: If there is no change in the price level, it identifies the market as stable.

3. Visual Dashboard Display

Finally, the script takes those findings and draws a clean dashboard on your chart (typically in the top-right corner). It uses a color-coding system to provide an instant "at-a-glance" status update:

  • Lime Green: Indicates an upward trend.
  • Red: Indicates a downward trend.
  • Yellow: Indicates a neutral or equal price position.

Key Features for the User

  • Dynamic Labeling: The dashboard includes a heading row that clearly labels each column so you know exactly which timeframe you are looking at.
  • Customizable Positioning: You can adjust the vertical and horizontal placement of the dashboard, as well as the spacing between columns, to ensure it doesn't obstruct your view of the price action.
  • Automatic Cleanup: The script is designed to be tidy; when you remove it from your chart, it automatically deletes the labels it created, leaving your workspace clean.
Price Data Components
Series array that contains the lowest prices of each barSeries array that contains close prices for each bar
3 Views
0 Downloads
0 Favorites
_TRO_Multi_Meter_Low
//+------------------------------------------------------------------+ 
//|  _TRO_Multi_Meter_Low                                           | 
//|                                                                  | 
//|   Copyright © 2007, Avery T. Horton, Jr. aka TheRumpledOne       |
//|                                                                  |
//|   PO BOX 43575, TUCSON, AZ 85733                                 |
//|                                                                  |
//|   GIFT AND DONATIONS ACCEPTED                                    | 
//|                                                                  |
//|   therumpldone@gmail.com                                         |  
//+------------------------------------------------------------------+ 
//|                                                                  |
//| go to www.kreslik.com for the latest indicator updates           |  
//+------------------------------------------------------------------+ 
//|                                                                  |
//| Use www.efxgroup.com as your forex broker...                     |  
//| ...tell them therumpledone sent you!                             |  
//+------------------------------------------------------------------+ 

// thank you Xard777 from www.forex-tsd.com for showing me how to delete the objects properly.
// thank you mladen from www.forex-tsd.com for showing me I had a locals and global variables with same name 


#property indicator_chart_window

extern bool Show_Heading = false;
 
extern string IndName = "LOW" ; // change

extern bool Corner_of_Chart_RIGHT_TOP = true;

extern int Shift_UP_DN =600; 
extern int Adjust_Side_to_side  = 20; // 20

extern color BarLabel_color = LightBlue;
extern color CommentLabel_color = LightBlue;

extern color Up_color = Lime;
extern color Eq_color = Yellow;
extern color Dn_color = Red;
//******************* 
// change inputs for your indicator 



//*******************

string ObjHead01,ObjHead02,ObjHead03,ObjHead04,ObjHead05,ObjHead06,ObjHead07,ObjHead08,ObjHead09,ObjHead10,ObjHead11;  

string Obj0001,Obj0002,Obj0003,Obj0004,Obj0005,Obj0006,Obj0007,Obj0008,Obj0009,Obj0010,Obj0011;  

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- 


//----
   return(0);
  }

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {    
   //***********************************************************************************************************************

string LabelTime="";

if (LabelTime=="") {LabelTime=TimeToStr(TimeLocal(),TIME_SECONDS); }

   int    counted_bars=IndicatorCounted();
   
   
   ObjHead01 = "LOWColHead01" + LabelTime ; 
   ObjHead02 = "LOWColHead02" + LabelTime ; 
   ObjHead03 = "LOWColHead03" + LabelTime ; 
   ObjHead04 = "LOWColHead04" + LabelTime ; 
   ObjHead05 = "LOWColHead05" + LabelTime ; 
   ObjHead06 = "LOWColHead06" + LabelTime ; 
   ObjHead07 = "LOWColHead07" + LabelTime ; 
   ObjHead08 = "LOWColHead08" + LabelTime ; 
   ObjHead09 = "LOWColHead09" + LabelTime ; 
         
   string LOW_ObjHead01 ="M1 " ;
   string LOW_ObjHead02 ="M5  " ;     
   string LOW_ObjHead03 ="M15 " ;
   string LOW_ObjHead04 =" M30 " ;
   string LOW_ObjHead05 ="H1  " ;     
   string LOW_ObjHead06 ="H4  " ;
   string LOW_ObjHead07 ="D1  " ;
   string LOW_ObjHead08 ="W1  " ;
   string LOW_ObjHead09 ="MN1" ;   
   
   
        
    if (Corner_of_Chart_RIGHT_TOP == true)
    { int Col01x = 170+Adjust_Side_to_side ;                 
      int Col01y = 28+Shift_UP_DN ;
    }
    if (Corner_of_Chart_RIGHT_TOP == false)
   { Col01x = 159+Adjust_Side_to_side ;       
     Col01y = 24+Shift_UP_DN ;
    } 
    
   int ColAdj = -20 ; 
   int Col02x = Col01x + ColAdj ;   
   int Col03x = Col01x + ColAdj*2 ; 
   int Col04x = Col01x + ColAdj*3 ; 
   int Col05x = Col01x + ColAdj*4 ; 
   int Col06x = Col01x + ColAdj*5 ; 
   int Col07x = Col01x + ColAdj*6 ;    
   int Col08x = Col01x + ColAdj*7 ; 
   int Col09x = Col01x + ColAdj*8 ;     
   
   if ( Show_Heading) {        
   ObjectCreate(ObjHead01, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead01,LOW_ObjHead01 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead01, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead01, OBJPROP_XDISTANCE, Col01x);
   ObjectSet(ObjHead01, OBJPROP_YDISTANCE, Col01y); 

   ObjectCreate(ObjHead02, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead02,LOW_ObjHead02 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead02, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead02, OBJPROP_XDISTANCE, Col02x);
   ObjectSet(ObjHead02, OBJPROP_YDISTANCE, Col01y);   
       
   ObjectCreate(ObjHead03, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead03,LOW_ObjHead03 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead03, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead03, OBJPROP_XDISTANCE, Col03x);
   ObjectSet(ObjHead03, OBJPROP_YDISTANCE, Col01y); 
 
   ObjectCreate(ObjHead04, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead04,LOW_ObjHead04 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead04, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead04, OBJPROP_XDISTANCE, Col04x);
   ObjectSet(ObjHead04, OBJPROP_YDISTANCE, Col01y); 
   
   ObjectCreate(ObjHead05, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead05,LOW_ObjHead05 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead05, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead05, OBJPROP_XDISTANCE, Col05x);
   ObjectSet(ObjHead05, OBJPROP_YDISTANCE, Col01y); 
            
   ObjectCreate(ObjHead06, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead06,LOW_ObjHead06 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead06, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead06, OBJPROP_XDISTANCE, Col06x);
   ObjectSet(ObjHead06, OBJPROP_YDISTANCE, Col01y); 

   ObjectCreate(ObjHead07, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead07,LOW_ObjHead07 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead07, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead07, OBJPROP_XDISTANCE, Col07x);
   ObjectSet(ObjHead07, OBJPROP_YDISTANCE, Col01y); 
         
   ObjectCreate(ObjHead08, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead08,LOW_ObjHead08 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead08, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead08, OBJPROP_XDISTANCE, Col08x);
   ObjectSet(ObjHead08, OBJPROP_YDISTANCE, Col01y); 

   ObjectCreate(ObjHead09, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(ObjHead09,LOW_ObjHead09 , 7, "Tahoma Narrow", BarLabel_color);
   ObjectSet(ObjHead09, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(ObjHead09, OBJPROP_XDISTANCE, Col09x);
   ObjectSet(ObjHead09, OBJPROP_YDISTANCE, Col01y); 
       
} // Show_Heading

 //*******************   change for  your indicator ********************
 
    
    string M1_LOW= "-",M5_LOW= "-", M15_LOW= "-", M30_LOW= "-", H1_LOW= "-", H4_LOW= "-", D1_LOW= "-",PRC1, W1_LOW= "-", MN1_LOW= "-";

    color  color_LOWm1,color_LOWm5,color_LOWm15,color_LOWm30,color_LOWH1,color_LOWH4,color_LOWD1,color_LOWW1,color_LOWMN1;     
         

   //LOW Signals

 
    double LOW_M1 =  iLow(NULL,PERIOD_M1,0);
    double LOW_m1 =  iLow(NULL,PERIOD_M1,1) ;

    double LOW_M5 =  iLow(NULL,PERIOD_M5,0) ;
    double LOW_m5 =  iLow(NULL,PERIOD_M5,1) ;

    double LOW_M15 = iLow(NULL,PERIOD_M15,0) ;
    double LOW_m15 =  iLow(NULL,PERIOD_M15,1) ;

    double LOW_M30 =  iLow(NULL,PERIOD_M30,0) ;
    double LOW_m30 =  iLow(NULL,PERIOD_M30,1) ;

    double LOW_H1 =  iLow(NULL,PERIOD_H1,0) ;
    double LOW_h1 =  iLow(NULL,PERIOD_H1,1);

    double LOW_H4 =  iLow(NULL,PERIOD_H4,0) ;
    double LOW_h4 =  iLow(NULL,PERIOD_H4,1) ;

    double LOW_D1 =  iLow(NULL,PERIOD_D1,0);
    double LOW_d1 =  iLow(NULL,PERIOD_D1,1) ;
    
    double LOW_W1 =  iLow(NULL,PERIOD_W1,0) ;
    double LOW_w1 =  iLow(NULL,PERIOD_W1,1) ;
    
    double LOW_MN1 =  iLow(NULL,PERIOD_MN1,0) ;
    double LOW_mn1 = iLow(NULL,PERIOD_MN1,1) ;
    
 
   
    if ((LOW_M1 > LOW_m1)) color_LOWm1 = Up_color; 
    else {
    if ((LOW_M1 < LOW_m1)) color_LOWm1 = Dn_color; 
    else color_LOWm1 = Eq_color; }
    
    
    if (( LOW_M5 > LOW_m5)) color_LOWm5 = Up_color; 
    else {
    if (( LOW_M5 < LOW_m5)) color_LOWm5 = Dn_color; 
    else color_LOWm5 = Eq_color; }
        
    if ((LOW_M15 > LOW_m15)) color_LOWm15 = Up_color; 
    else {
    if ((LOW_M15 < LOW_m15)) color_LOWm15 = Dn_color; 
    else color_LOWm15 = Eq_color; }
    
    if ((LOW_M30 > LOW_m30)) color_LOWm30 = Up_color; 
    else {
    if ((LOW_M30 < LOW_m30)) color_LOWm30 = Dn_color; 
    else color_LOWm30 = Eq_color; }

    if ((LOW_H1 > LOW_h1)) color_LOWH1 = Up_color; 
    else {
    if ((LOW_H1 < LOW_h1)) color_LOWH1 = Dn_color; 
    else color_LOWH1 = Eq_color; }

    if ((iClose(NULL,PERIOD_H4,0) > LOW_H4) 
    &&  (iClose(NULL,PERIOD_H4,0) > LOW_h4)) color_LOWH4 = Up_color; 
    else {
    if ((iClose(NULL,PERIOD_H4,0) < LOW_H4) 
    &&  (iClose(NULL,PERIOD_H4,0) < LOW_h4)) color_LOWH4 = Dn_color; 
    else color_LOWH4 = Eq_color; }

    if ((LOW_D1 > LOW_d1)) color_LOWD1 = Up_color; 
    else {
    if ((LOW_D1 < LOW_d1)) color_LOWD1 = Dn_color; 
    else color_LOWD1 = Eq_color; }

    if ((LOW_W1 > LOW_w1)) color_LOWW1 = Up_color; 
    else {
    if ((LOW_W1 < LOW_w1)) color_LOWW1 = Dn_color; 
    else color_LOWW1 = Eq_color; }

    if ((LOW_MN1 > LOW_mn1)) color_LOWMN1 = Up_color; 
    else {
    if ((LOW_MN1 < LOW_MN1)) color_LOWMN1 = Dn_color; 
    else color_LOWMN1 = Eq_color; }

               
    
 //*******************          
    
    int Col00x = Col01x + 20 ;
    int Col00y = 50+Shift_UP_DN ;
    
    Col01y = 20+Shift_UP_DN ;
    
   Obj0002 = "SignalLOWM1t" + LabelTime ; 
           
           ObjectCreate(Obj0002, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0002,IndName, 7, "Tahoma Narrow",  BarLabel_color);  
   ObjectSet(Obj0002, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0002, OBJPROP_XDISTANCE, Col00x);
   ObjectSet(Obj0002, OBJPROP_YDISTANCE, Col00y);  // 50+Shift_UP_DN

   Obj0003 = "SignalLOWM1" + LabelTime ;        
           ObjectCreate(Obj0003, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0003, M1_LOW, 40, "Tahoma Narrow",  color_LOWm1);
   ObjectSet(Obj0003, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0003, OBJPROP_XDISTANCE, Col01x);
   ObjectSet(Obj0003, OBJPROP_YDISTANCE, Col01y); 

   Obj0004 = "SignalLOWM5" + LabelTime ;          
           ObjectCreate(Obj0004, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0004, M5_LOW, 40, "Tahoma Narrow",  color_LOWm5);
   ObjectSet(Obj0004, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0004, OBJPROP_XDISTANCE, Col02x);
   ObjectSet(Obj0004, OBJPROP_YDISTANCE, Col01y); 
      
   Obj0005 = "SignalLOWM15" + LabelTime ; 
   ObjectCreate(Obj0005, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0005, M15_LOW, 40, "Tahoma Narrow",  color_LOWm15);
   ObjectSet(Obj0005, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0005, OBJPROP_XDISTANCE, Col03x);
   ObjectSet(Obj0005, OBJPROP_YDISTANCE, Col01y); 
      
   Obj0006 = "SignalLOWM30" + LabelTime ; 
   ObjectCreate(Obj0006, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0006, M30_LOW, 40, "Tahoma Narrow",  color_LOWm30);
   ObjectSet(Obj0006, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0006, OBJPROP_XDISTANCE, Col04x);
   ObjectSet(Obj0006, OBJPROP_YDISTANCE, Col01y); 

   Obj0007 = "SignalLOWM60" + LabelTime ;      
           ObjectCreate(Obj0007, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0007, H1_LOW, 40, "Tahoma Narrow",  color_LOWH1);
   ObjectSet(Obj0007, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0007, OBJPROP_XDISTANCE, Col05x);
   ObjectSet(Obj0007, OBJPROP_YDISTANCE, Col01y); 

   Obj0008 = "SignalLOWM240" + LabelTime ;          
           ObjectCreate(Obj0008, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0008, H4_LOW, 40, "Tahoma Narrow",  color_LOWH4);
   ObjectSet(Obj0008, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0008, OBJPROP_XDISTANCE, Col06x);
   ObjectSet(Obj0008, OBJPROP_YDISTANCE, Col01y);

   Obj0009 = "SignalLOWM1440" + LabelTime ;    
           ObjectCreate(Obj0009, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0009, D1_LOW, 40, "Tahoma Narrow",  color_LOWD1);
   ObjectSet(Obj0009, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0009, OBJPROP_XDISTANCE, Col07x);
   ObjectSet(Obj0009, OBJPROP_YDISTANCE, Col01y);
   
   Obj0010 = "SignalLOWW1" + LabelTime ;    
           ObjectCreate(Obj0010, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0010, W1_LOW, 40, "Tahoma Narrow",  color_LOWW1);
   ObjectSet(Obj0010, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0010, OBJPROP_XDISTANCE, Col08x);
   ObjectSet(Obj0010, OBJPROP_YDISTANCE, Col01y);   
   
   Obj0011 = "SignalLOWMN1" + LabelTime ;    
           ObjectCreate(Obj0011, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Obj0011, MN1_LOW, 40, "Tahoma Narrow",  color_LOWMN1);
   ObjectSet(Obj0011, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
   ObjectSet(Obj0011, OBJPROP_XDISTANCE, Col09x);
   ObjectSet(Obj0011, OBJPROP_YDISTANCE, Col01y); 
     
 //----
   return(0);
  }
//+------------------------------------------------------------------+

//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----

ObjectsDeleteAll(0,OBJ_HLINE);
ObjectsDeleteAll(0,OBJ_TEXT);
ObjectsDeleteAll(0,OBJ_LABEL);
deleteObject(); 

//----
   return(0);
  }
  
void deleteObject()
  { 
//ObjectDelete(Obj0001);  
ObjectDelete(Obj0002); 
ObjectDelete(Obj0003); 
ObjectDelete(Obj0004); 
ObjectDelete(Obj0005); 
ObjectDelete(Obj0006); 
ObjectDelete(Obj0007); 
ObjectDelete(Obj0008); 
ObjectDelete(Obj0009); 
ObjectDelete(Obj0010); 
ObjectDelete(Obj0011); 

ObjectDelete(ObjHead01);  
ObjectDelete(ObjHead02); 
ObjectDelete(ObjHead03); 
ObjectDelete(ObjHead04); 
ObjectDelete(ObjHead05); 
ObjectDelete(ObjHead06); 
ObjectDelete(ObjHead07); 
ObjectDelete(ObjHead08); 
ObjectDelete(ObjHead09); 
 
  }

Comments