How to convert Period Current to single Dashboard Chart

 
 // input ENUM_TIMEFRAMES  Time_Fr = PERIOD_CURRENT;
             
            string  text01_txt, text05_txt, text15_txt;
            color   text01_clr, text05_clr, text15_clr;
            
            bool    test_01, test_02;              // Time Frame set to PERIOD_CURRENT
            double  test_03, test_04, test_05;     // Time Frame set to PERIOD_CURRENT        
                     
            bool TEST = ((test_01 && test_02) && (test_03 > test_04) && (test_05 > 0));  // Time Frame set to PERIOD_CURRENT

            if ((TEST) && (PERIOD_CURRENT==PERIOD_M1))       <-----------issue
               {
                 text01_txt = "AAA";
                 text01_clr = Lime;
               }
               else
                {
                 text01_txt = "BBB";
                 text01_clr = Red;
                }
            if ((TEST) && (PERIOD_CURRENT==PERIOD_M5))      <-----------issue  
               {
                 text05_txt = "CCC";
                 text05_clr = Lime;
               }
               else
                {
                 text05_txt = "DDD";
                 text05_clr = Red;
                }    
                     .
                     .
                     .
                     .

Hello, 

I write an indicator that I want in this indicator it shows chart current period but I want to convert in single dashboard chart no matter time frame I choose.

Would you to like  one of you know to help the fix solution?


 
agosh_002:

Hello, 

I write an indicator that I want in this indicator it shows chart current period but I want to convert in single dashboard chart no matter time frame I choose.

Would you to like  one of you know to help the fix solution?


?????????

I have no idea what you are asking about.

 
Keith Watford:

?????????

I have no idea what you are asking about.

Thank you for your response.

Sorry for accidentally "Enter" button & I update with script

 
if(Period()==PERIOD_M5)
 {

 }
 
Marco vd Heijden:

Thank you,  but your script only show in specific TF (PERIOD_M5) not all TF. I need to  show all TF.

Say again thank you.

 

So you can add the rest your self.

 

//--- period detector
   switch(Period())
     {
      case PERIOD_M1:
         //Do Something...
         break;
      case PERIOD_M5:
         //Do Something...
         break;
      case PERIOD_M15:
         //Do Something...
         break;
      case PERIOD_M30:
         //Do Something...
         break;
      case PERIOD_H1:
         //Do Something...
         break;
      case PERIOD_H4:
         //Do Something...
         break;
      case PERIOD_D1:
         //Do Something...
         break;
      case PERIOD_W1:
         //Do Something...
         break;
      case PERIOD_MN1:
         //Do Something...
         break;
     }
 
Marco vd Heijden:

So you can add the rest your self.

 

I think this is miscommunication, I want solution TF set to PERIOD_CURRENT but I can monitor  object (PERIOD_CURRENT ) in single chart (dashboard type) no matter TF I choose .
Thank you
 
I have no idea what your talking about sorry.
 
agosh_002:
I think this is miscommunication, I want solution TF set to PERIOD_CURRENT but I can monitor  object (PERIOD_CURRENT ) in single chart (dashboard type) no matter TF I choose .
Thank you

????

You should type your request in native language and use a translator tool.