Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Choose time frame in parameter

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

    Choose time frame in parameter

    Hello guys!

    I want to create a time frame selection (combo box) in 'Parameters' section (like as on chart).
    [Every Ticks; 1 Min; 2 Min; 3 Min; 5 Min; 10 Min; 15 Min; 30 Min; 60 Min]
    It would be a scheduler.
    If selected the 'Every Ticks': calling a function for every incoming tick
    If selected the '1 Min': calling a function in every minutes (when new bar is opened on 1 min chart)
    etc...
    Have you got any idea?

    Thank you,
    Bejglee

    #2
    Hello Bejglee,

    Thank you for your note.

    Using enums can give you a drop-down.

    Below is a link to an example in the forums file sharing section that has a demonstration of this.
    http://ninjatrader.com/support/forum...d=4&linkid=426

    If you are wanting to make a drop-down from an array of strings, this can be done too. Attached is an example.
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    142 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    81 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    125 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    119 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    98 views
    0 likes
    Last Post CarlTrading  
    Working...
    X