Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Add buttons to toggle between snap modes

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

    Add buttons to toggle between snap modes

    Hi, would you be able to help please with a code to add 2 buttons to the chart? One button for disabling snap mode, and the other for snap mode bar and price? I dont have any coding knowledge but have tried editing some other indicators and even ChatGPT's help but failed. Thanks!

    #2
    Hello wings,

    Adding buttons to the chart is a fairly involved task that does require some coding knowlege for both C#/WPF and NinjaScript. There are some samples on the forum that can help for learning how to modify the user interface which I have linked below.

    Regarding the snap mode, unfortunately there is nothing documented/support that I could recommend to toggle that setting. There is currently no NinjaScript specific method or property to interact with that menu and its options.

    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DayTradingDEMON, Today, 11:25 PM
    0 responses
    3 views
    0 likes
    Last Post DayTradingDEMON  
    Started by Day_Storay1, Today, 09:06 PM
    0 responses
    6 views
    0 likes
    Last Post Day_Storay1  
    Started by Rudmax, 07-02-2024, 05:40 AM
    59 responses
    1,056 views
    1 like
    Last Post QuantVPS  
    Started by tomtom2000, Today, 12:56 PM
    3 responses
    18 views
    0 likes
    Last Post jabowery  
    Started by stoner, 01-16-2020, 08:07 AM
    20 responses
    514 views
    0 likes
    Last Post IanS00
    by IanS00
     
    Working...
    X