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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X