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

Initialize property based on InstrumentType

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

    Initialize property based on InstrumentType

    How do I initialize a property in my strategy depending on the InstrumentType?
    For example; if I use my strategy on a chart that has InstrumentType.Future, then use y value in property, else if InstrumentType.Currency, then us x value in property.

    thanks

    #2
    Hello,

    I do not think the data exists in initialization, so the data type will not be accessiable. If you feel this is incorrect I can confirm it for you. Just let me know.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jackiegils, Today, 11:05 PM
    0 responses
    3 views
    0 likes
    Last Post jackiegils  
    Started by cre8able, Yesterday, 09:15 PM
    2 responses
    15 views
    0 likes
    Last Post cre8able  
    Started by Trader146, Today, 09:17 PM
    0 responses
    6 views
    0 likes
    Last Post Trader146  
    Started by ttrader23, 05-08-2024, 09:04 AM
    9 responses
    43 views
    0 likes
    Last Post ttrader23  
    Started by ZeroKuhl, Yesterday, 04:31 PM
    8 responses
    46 views
    0 likes
    Last Post ZeroKuhl  
    Working...
    X