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

Passing a Defined TradingHours into an indicator attached to Strategy.

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

    Passing a Defined TradingHours into an indicator attached to Strategy.

    I am using the NinjaTrader OrderFlowVWAP indicator in my Strategy. The new Signature for the Indicator uses a TradingHours object. I do not want to use the one associated with the Strategy or one associated with a chart i may place the strategy on. How do I select one of the saved if I know the name? If i build one in the code does it get saved anywhere other than the code?

    Thanks,
    Mark

    On a side note, it would be nice if the signatures of these NinjaTrader OrderFlow indicators could be added to existing ones instead of dropping old signatures and using new ones when you release patches. I miss passing in the start and end times to the OrderFlowVwap.


    #2
    Hello EllisEdi,

    From the help guide on how to get a trading hours object instance by name:
    TradingHours.String2TradingHours("CME US Index Futures RTH")

    Below is a public link to the help guide.
    https://ninjatrader.com/support/help...flow_vwap2.htm

    If you were to create a new TradingHours object in code, no, this would not be saved as a TradingHours template .xml file.


    I will pass your request to include new overloads instead of changing overloads. However, please note that these were recent additions and may have needed these changes to be properly implemented. Not every overload change can be an addition and sometimes due to the changes internally replacing the overloads are necessary.
    Last edited by NinjaTrader_ChelseaB; 11-07-2018, 04:11 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    75 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by Stanfillirenfro, Today, 07:23 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FitSpressoHonest, Today, 09:14 AM
    0 responses
    1 view
    0 likes
    Last Post FitSpressoHonest  
    Started by Davide999, 05-18-2023, 03:55 AM
    4 responses
    557 views
    1 like
    Last Post kcwasher  
    Started by rexsole, Today, 08:39 AM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X