Re: Indicators with ON/OFF buttons

583
DVanAssen wrote: Thu Aug 13, 2020 12:54 am Hi there Banzai. Trust all is good?
Please, whenever possible, add buttons to these 2 indi.
They help with PA decisions but clutter up the chart.
Right now my charts are perfect thanks to all your great contributions.
Much much appreciated
In this version, you can change font, font size, and font color.
The top numbers can be in different colors.
These users thanked the author Banzai for the post (total 2):
DVanAssen, Jimmy


Re: Indicators with ON/OFF buttons

588
DVanAssen wrote: Sun Aug 16, 2020 8:01 pm Sir, if so allowed as time permits, please make this indi a button. Your tireless contributions are very much appreciated. Regards and have a great week ahead. Deane . Ps thanks to your amazing Button thread, I now have only 1 template!!

Code: Select all

  //Set bar widths                   
        if(Chart_Scale == 0) {Bar_Width = 2;}
  else {if(Chart_Scale == 1) {Bar_Width = 3;}      
  else {if(Chart_Scale == 2) {Bar_Width = 3;}
  else {if(Chart_Scale == 3) {Bar_Width = 3;}
  else {if(Chart_Scale == 4) {Bar_Width = 7;}
  else {Bar_Width = 13;} }}}}
According to the code,
if the chart scale is zero, which is the minimum, the bar width is 2.
If the chart scale is 5, or the maximum, the bar width is 13.
Anway, I fixed it. In the original indicator, look like it doesn't display quite right???

In the animated gif, look at the words "Chart_Scale ="
and you'll see what's going on.
These users thanked the author Banzai for the post (total 3):
DVanAssen, mosiskv, edg3end

Re: Indicators with ON/OFF buttons

589
Banzai wrote: Mon Aug 17, 2020 3:15 am According to the code,
if the chart scale is zero, which is the minimum, the bar width is 2.
If the chart scale is 5, or the maximum, the bar width is 13.
Anway, I fixed it. In the original indicator, look like it doesn't display quite right???
Man, what does it mean?
I don't understand what you are saying.
Try to say it in clear and understandable terms.


Who is online

Users browsing this forum: alimpe2000, Applebot [Crawler], Bing [Bot], ChatGPT [Bot] and 68 guests