Announcement

Collapse
No announcement yet.

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 cupir2, Yesterday, 06:49 PM
    0 responses
    11 views
    0 likes
    Last Post cupir2
    by cupir2
     
    Started by cupir2, Yesterday, 06:45 PM
    0 responses
    7 views
    0 likes
    Last Post cupir2
    by cupir2
     
    Started by mathfrick2023, 05-08-2025, 12:51 PM
    7 responses
    47 views
    0 likes
    Last Post mathfrick2023  
    Started by 1001111, Yesterday, 07:12 AM
    1 response
    15 views
    0 likes
    Last Post 1001111
    by 1001111
     
    Started by Pope_Finance_II, Yesterday, 02:19 PM
    0 responses
    10 views
    0 likes
    Last Post Pope_Finance_II  
    Working...
    X