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 f.saeidi, Yesterday, 02:09 PM
          3 responses
          18 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Jltarrau, Today, 05:57 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by kujista, Today, 06:23 AM
          0 responses
          2 views
          0 likes
          Last Post kujista
          by kujista
           
          Started by traderqz, Yesterday, 04:32 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by f.saeidi, Today, 05:56 AM
          1 response
          5 views
          0 likes
          Last Post Jltarrau  
          Working...
          X