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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 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
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X