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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    33 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    284 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    133 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    91 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X