Page 274 of 339

Re: Indicators with ON/OFF buttons

Posted: Fri Nov 25, 2022 8:54 pm
by luo83868008
2 Candles_MACD_Overlay_AutoWidth BT

Re: Indicators with ON/OFF buttons

Posted: Sat Nov 26, 2022 12:13 pm
by talaate
Hi my friends
Hope on/off button can be added to the attached mladen's indicator of Fibe pivots
.Many Thanks in advance & happy weekend

Re: Indicators with ON/OFF buttons

Posted: Sat Nov 26, 2022 12:59 pm
by Woodyz
talaate wrote: Sat Nov 26, 2022 12:13 pm Hi my friends
Hope on/off button can be added to the attached mladen's indicator of Fibe pivots
.Many Thanks in advance & happy weekend

Fibo pivots.mq4
You can have a look at this one and see if you like it & works in with your trading style

Re: Indicators with ON/OFF buttons

Posted: Sat Nov 26, 2022 1:21 pm
by luo83868008
talaate wrote: Sat Nov 26, 2022 12:13 pm Hi my friends
Hope on/off button can be added to the attached mladen's indicator of Fibe pivots
.Many Thanks in advance & happy weekend

Fibo pivots.mq4

Re: How do you judge if you are responsible for 3 or 4 tasks when displaying data?

Posted: Sat Nov 26, 2022 1:58 pm
by luo83868008
kvak wrote: Thu Nov 24, 2022 8:45 pm Dont understand, this question is for me? Is possible, you have some indicator with this so post it...

Code: Select all

 int start()
{

   recalc = false;
   
       

   
   if (show_data)
      {
      
      //1 click button
      ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
      ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,btn_unpressed);
      start2();
       handleButtonClicks();
      }
      else
      if (show_data1)
      {
      //2 clicks on the button
      ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
      ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,btn_pressed);     
      deinit2();
       handleButtonClicks();
      }
      else
       {
       //3 clicks on the button
      ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
      ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,btn_text); 
      handleButtonClicks();
      deinit2();
      }
       return(0);
      } 
Why can the button code be read only twice? thank you!

Re: Indicators with ON/OFF buttons

Posted: Sat Nov 26, 2022 2:18 pm
by talaate
Woodyz wrote: Sat Nov 26, 2022 12:59 pm You can have a look at this one and see if you like it & works in with your trading style
Image
many thanks

Re: Indicators with ON/OFF buttons

Posted: Sat Nov 26, 2022 2:19 pm
by talaate
luo83868008 wrote: Sat Nov 26, 2022 1:21 pm
many thanks

Re: Indicators with ON/OFF buttons

Posted: Sun Nov 27, 2022 5:48 pm
by sal
Banzai wrote: Tue Aug 31, 2021 11:40 pm 123 TRIANGLES
Image
Dear Banzai
can you please check this indicator price text value and triangle forming price are same ???. when i seen the chart, there is difference . kindly see the snap where i marked yellow line !!
if possible to make a line will be great.

Re: How do you judge if you are responsible for 3 or 4 tasks when displaying data?

Posted: Mon Nov 28, 2022 3:03 am
by kvak
luo83868008 wrote: Sat Nov 26, 2022 1:58 pm

Code: Select all

 int start()
{

   recalc = false;
   
       

   
   if (show_data)
      {
      
      //1 click button
      ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_ON_color);
      ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,btn_unpressed);
      start2();
       handleButtonClicks();
      }
      else
      if (show_data1)
      {
      //2 clicks on the button
      ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
      ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,btn_pressed);     
      deinit2();
       handleButtonClicks();
      }
      else
       {
       //3 clicks on the button
      ObjectSetInteger(ChartID(),buttonId,OBJPROP_COLOR,btn_text_OFF_color);
      ObjectSetString(ChartID(),buttonId,OBJPROP_TEXT,btn_text); 
      handleButtonClicks();
      deinit2();
      }
       return(0);
      } 
Why can the button code be read only twice? thank you!
Sorry, dont know....

Re: How do you judge if you are responsible for 3 or 4 tasks when displaying data?

Posted: Mon Nov 28, 2022 1:08 pm
by luo83868008
kvak wrote: Mon Nov 28, 2022 3:03 am Sorry, dont know....
many thanks