Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to load multiple stock and option prices

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

    How to load multiple stock and option prices

    Hello,

    I would like to know how to load multiple stock prices and option prices into an indicator to use in the market analyzer.



    float call3bid = //load the 3rd closest call to the current stock price's (above the current stock price) best bid
    float call3ask = // load the 3rd closest call to the current stocks price's best ask
    float call2bid = // load the 2nd closest call to the current stocks price's best bid
    float call2ask =
    float call1bid = // load the closest call to the current stock price's (while still being above the current stock price) best bid
    float call1ask =

    float stockbid = // load the current stock prices best bid
    float stockask = // load the current stock prices best ask

    float put1bid = // load the closest put to the current stocks price's (while still being below the current stock price) best bid
    float put1ask
    float put2bid
    float put2ask
    float put3bid
    float put3ask


    All of these variables would be for the same stock. Can you show me what the ninjascript indicator would look like to load those variables?

    #2
    Hello chris8sirhc,
    You can create a multi-series indicator to load up multiple instruments in the same indicator. Please refer to our help guide to know more


    In this context let me also say that unfortunately NinjaTrader does not supports Options. It supports Future, Stocks and Forex.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      also, this doesnt directly relate to indicators, but will ninja trader make it easier to place an order with interactive brokers for a 2 legged options spread. ex, short 5 AAPL 550 calls, and buy 5 AAPL 600 calls.

      Comment


        #4
        is there any software like this that supports options?

        Comment


          #5
          Hello chris8sirhc,
          Unfortunately I am not aware of any 3rd party addons for NinjaTrader which will enable you to trade options from NinjaTrader.

          NinjaTrader 7 currently does not supports options. I will however send your feature request to development for future consideration.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by usazencort, Today, 01:16 AM
          0 responses
          1 view
          0 likes
          Last Post usazencort  
          Started by kaywai, 09-01-2023, 08:44 PM
          5 responses
          603 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by xiinteractive, 04-09-2024, 08:08 AM
          6 responses
          23 views
          0 likes
          Last Post xiinteractive  
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          22 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          230 views
          0 likes
          Last Post TradingLoss  
          Working...
          X