Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add instrument in OnBarUpdate

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

    Add instrument in OnBarUpdate

    Hi,

    Is there way to add instrument in OnBarUpdate? Please help me if this is possible in NinjaTrader.

    Thanks,
    Irfan

    #2
    Hi Rana.irfan,

    Thank you for posting.

    You cannot add an instrument in the OnBarUpdate() method. Only in the Initialize() method.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      No, but why?

      Comment


        #4
        Thanks,

        I am working on a project in which I get signal from trade ideas API about specific Instrument and want to send order on this instrument.How can I add this instrument when signal is arrived from Trade Ideas API.

        Comment


          #5
          Hi,

          Can any one tell me, Is there a way to send order on specific instrument ? if this instrument is not added in the strategy .

          Comment


            #6
            Rana.irfan,

            This is not possible as the script would need to know what instrument to send the order to which would required adding the instrument in some capacity to the script.
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            64 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            35 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            59 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            51 views
            0 likes
            Last Post CarlTrading  
            Working...
            X