Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color Stochastic in N7

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

    Color Stochastic in N7

    I have imported an indicator called Stochastic color, it works but in previous 6.5 ( %D) was green when up, yellow when neutral and red when down, instead I have 2 (% D) lines 1 green and 1 red instead of being on same one so it would seems they do not draw on same line.

    I am sure it comes from somewhere from the lines below, anyone could hel me on this .

    Thanks

    // Plot green if the %D is rising
    // Rising() returns true when the current value is greater than the value of the previous bar.
    if (Rising(Stochastics(PeriodD, PeriodK, Smooth).D))
    {
    // Connects the rising plot segment with the other plots
    RisingPlot.Set(1, Stochastics(PeriodD, PeriodK, Smooth).D[1]);

    // Adds the new rising plot line segment to the line
    RisingPlot.Set(Stochastics(PeriodD, PeriodK, Smooth).D[0]);
    }

    // Plot red if the %D is falling
    // Falling() returns true when the current value is less than the value of the previous bar.
    else if (Falling(Stochastics(PeriodD, PeriodK, Smooth).D))
    {
    // Connects the new falling plot segment with the rest of the line
    FallingPlot.Set(1, Stochastics(PeriodD, PeriodK, Smooth).D[1]);

    // Adds the new falling plot line segment to the line
    FallingPlot.Set(Stochastics(PeriodD, PeriodK, Smooth).D[0]);
    }

    // Plot yellow if the %D is neutral
    else
    {
    // Connects the neutral plot segment with the rest of the line
    NeutralPlot.Set(1, Stochastics(PeriodD, PeriodK, Smooth).D[1]);

    // Adds the new neutral plot line segment to the line
    NeutralPlot.Set(Stochastics(PeriodD, PeriodK, Smooth).D[0]);

    #2
    Larry22, thanks for reporting this in - we're currently reviewing issues in this area.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    33 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    284 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    133 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    91 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X