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?
Comment