Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with Multi Time Frame strategy

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

    Help with Multi Time Frame strategy

    So im writing a small strategy to draw an object every time a 1 volume charts close price crosses a line on a 100 volume chart. My code only draws one triangle, it should draw a triangle each time 1 volume is traded below or above the lower and upper bands of this bollinger. Any Ideas?

    Code:
     protected override void OnBarUpdate()
            {
                // Condition set 1
                if (BarsInProgress == 1)
                    return;
                
                if (Closes[1][0] < Bollinger_v1(BarsArray[0], Bollinger_v1_ColorBasis.Compressing_Decompressing, 0, AStandard, Bollinger_v1_OutputType.RegressionChannel, APeriod).Lower[0])
                {
                    DrawTriangleUp("My triangle up" + CurrentBar, true, 0, Close[0], Color.Lime);
                    Print(Opens[1][0]);
                }
    
                // Condition set 2
                if (Closes[1][0] > Bollinger_v1(BarsArray[0], Bollinger_v1_ColorBasis.Compressing_Decompressing, 0, AStandard, Bollinger_v1_OutputType.RegressionChannel, APeriod).Upper[0])
                {
                    DrawTriangleDown("My triangle down" + CurrentBar, true, 0, Close[0], Color.Red);
                }
            }

    #2
    Hi Floyd, what exact series are you adding and working with, and in which order?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    601 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    347 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    559 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X