Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time Frame with Multi Instruments , Spread and Bollinger Bands

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

    Multi Time Frame with Multi Instruments , Spread and Bollinger Bands

    Hello,

    I am programming an strategy with two different instruments and different Time Frames.

    in this strategy I use the Cross Above of the Spread of this two instruments with the Lower Bollinger Band of this Spread (as Input Data Series) to enter a long order , the problem it is that I use the Spread of this two instruments in 1 minute bar when it crosses the Lower Bollinger Band of the Spread of 15 minute bar , then I need to use the BarsArray :

    if (BarsInProgress == 3)
    {
    CrossAbove(Spread( contracts0,-contracts1,symbol2,useMultiplier),Bollinger( BarsArray[2],Spread( contracts0,-contracts1,symbol2,useMultiplier),numStdDev, period ).Lower[ barsAgo] , 1))
    }

    as Bollinger Bands only supports 3 arguments:

    Bollinger(IDataSeries input, double numStdDev, int period).Lower[int barsAgo]

    when I compile the strategy appears an error that says Bollinger method do not accepts 4 arguments .

    What should I do to solve this problem?

    many Thanks
    Albert

    #2
    Hi Albert, sounds to me like you would need to supply the BarsArray[2] to the spread indicator as input series to run on and then use this series in your Bollinger Band call for the conditions?

    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