Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The use of inputs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    The use of inputs

    I want to have user inputs in a strategy. I would like the user to communicate with the program at his option. For example, let's say that the program is putting diamonds on a chart. Suppose the user doesn't want any more diamonds being placed on the chart. So, the user clicks on the chart and selects 'Strategies'. He selects his strategy then places an entry in an input. The software will interpret this in such a way as to prevent diamonds from being drawn on the chart. At a later time, the user enters into the input and the diamonds now begin appeariung again. Like a toggle.

    I tried to use the default myInput0 and change its value within the program.
    myInput0=8; When another bar formed I checked the input value from the chart. It didn't change to 8 until I highlighted the strategy. However, I cannot enter another number into the input. It is locked out.

    Suggestions?

    Thank you...

    #2
    Duke,

    I'd suggest using Boolean methods which can be set to True or False.

    if(ShowDiamonds == true)
    //logic w/ DrawDiamonds()

    if(ShowDiamonds == false)
    //logic w/o DrawDiamonds()
    MatthewNinjaTrader Product Management

    Comment


      #3
      Matthew,
      After the strategy is up and running can I click on the chart and select the strategy then change the inputs and have the software react to this on an interactive basis without stopping the processing within the software?
      Duke

      Comment


        #4
        You cannot change a strategy parameter on a running strategy.

        You can do this on an indicator, but for a strategy you would need to disable and then re-enable the strategy.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X