Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 17:49:02 +0000



Post From: Color based on Alert Condition Study

[2019-07-19 13:00:43]
mpro - Posts: 44
Color Bar on Alert Condition works as intended. Now I am trying to use the ASCIL function. When I set PerformCloseCrossoverComparison = true I still get normal extension lines. They break with HL crossover.

This is the Code:
n_ACSIL::s_LineUntilFutureIntersection LineUntilFutureIntersection;
    
    LineUntilFutureIntersection.StartBarIndex = sc.Index;
    LineUntilFutureIntersection.EndBarIndex = 0;
    LineUntilFutureIntersection.LineIDForBar = 1247;
    LineUntilFutureIntersection.LineValue = sc.Close[sc.Index];
    LineUntilFutureIntersection.LineValue2ForRange = false;
    LineUntilFutureIntersection.UseLineValue2 = false;
    LineUntilFutureIntersection.LineColor = Selling_Structure.PrimaryColor;
    LineUntilFutureIntersection.LineWidth = Selling_Structure.LineWidth;
    LineUntilFutureIntersection.LineStyle = Selling_Structure.LineStyle;
    
    LineUntilFutureIntersection.DrawValueLabel = false;
    LineUntilFutureIntersection.DrawNameLabel = false;
    LineUntilFutureIntersection.NameLabel = "";
    LineUntilFutureIntersection.AlwaysExtendToEndOfChart = false;
    LineUntilFutureIntersection.TransparencyLevel = 50;  
    LineUntilFutureIntersection.PerformCloseCrossoverComparison = true;
    
    sc.AddLineUntilFutureIntersectionEx(LineUntilFutureIntersection);

Sierra Chart 1952
No Compiler Errors
Date Time Of Last Edit: 2019-07-19 13:03:23
imageCloseCrossoverComparison.png / V - Attached On 2019-07-19 13:03:20 UTC - Size: 2.76 KB - 275 views