title: PineScript - Adding Input to ON/OFF chart plots
body: <p>New to PineScript.</p>
  <p>I added this indicators script(<a href="https://www.tradingview.com/script/a0vTLaS6-Double-Top-Bottom-Ultimate-OS/" rel="nofollow noreferrer">https://www.tradingview.com/script/a0vTLaS6-Double-Top-Bottom-Ultimate-OS/</a>) to my original strategy, so I can add new conditions for strategy.close/entry, but the problem is that my previous chart plots and some buttons now are not working anymore. I think that the new script that I inserted (copy/past) is overlaying the previous strategy, thus the previous chart plots are not working. In this case, I think the best option is to create an Input.bool for the boxes shown below.</p>
  <p><a href="https://i.stack.imgur.com/JKvqC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JKvqC.png" alt="enter image description here" /></a></p>
  <p>I came up with this:</p>
  <p>xyz = input(title=&quot;XYZ&quot;, type=input.bool, defval=false)</p>
  <p>But I don't know how I should relate this input to its relevant line. I think line 172 is the relevant code for this boxes:</p>
  <pre><code>labelText = (doubleTop? &quot;Double Top&quot; : &quot;Double Bottom&quot;) + (DisplayRiskPerReward ? &quot; RR - &quot;+tostring(riskPerReward) : &quot;&quot;)
  </code></pre>
  <p>Also, In case I want to add(copy/past) new scripts to my strategy. Is there a way to
  create a button for the whole indicator, within my indicator? For instance, my indicator's name is &quot;XYZ&quot; and I want to add &quot;ABC&quot; inside &quot;XYZ&quot;. Is there a way to set a button for &quot;ABC&quot;, so when I use the general indicator (&quot;XYZ&quot;), I can just turn it off and on? Is it normal input? or I should indent everything in the code?</p>