Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Some clarification on Add()

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

    Some clarification on Add()

    When loading an additional chart series (for example, AddKagi, AddLineBreak, AddPointAndFigure and AddRenko) within a strategy does it still build OHLC. Would you be able to use the open high low closes X number of bars back? The reason I ask is from reading the Help section it says possible values are MarketDataType.Ask, MarketDataType.Bid, MarketDataType.Last?

    Thanks in advance,
    suprsnipes

    #2
    I have made some progress with the Add() and would like to know what would be causing the following error with this line of code;

    Code:
    Close[1][3] < Open[1][3]
    Cannot apply indexing with [] to an expression of type 'double'.

    I'm trying to access the barsAgo [1] in a multi-instrument strategy [3]. How can I access this without the error?

    Comment


      #3
      Hi suprsnipes, in MultiSeries strategy you would use :

      Closes[1][3] < Opens[1][3]

      Comment


        #4
        Thanks again.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X