Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Consecutive periods of rise/fall ribbon for Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker

Shows consecutive periods of rise/fall in price (Avg) as green/red/yellow points on a ribbon. Very useful for visualizing trending and ranging stretches. Can be used to write higher order indicators/systems.

Screenshots

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez over 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn about 13 years ago
3_6Day GuaiLiLv
Submitted by motorfly about 13 years ago
Williams Alligator System
Submitted by durgesh1712 about 13 years ago
*Level Breakout system*
Submitted by Tinych about 13 years ago
Horizontal Live Priceline Tool
Submitted by northstar about 13 years ago

Indicator / Formula

Copy & Paste Friendly
function isRising ( array, periods )
{
    result = True;

    for ( i = 0; i < periods; i++ )
    {
        result = result AND ( Ref( array, -i ) >= Ref( array, -( i + 1 ) ) );
        //result = ( result == True ) AND ( PercentageDecrease( Ref( array, -( i + 1 ) ), Ref( array, -i ) ) < DecreaseThreshold );
    }
    return result;
}

function isFalling ( array, periods )
{
    result = True;

    for ( i = 0; i < periods; i++ )
    {
        result = ( result == True ) AND ( Ref( array, -i ) <= Ref( array, -( i + 1 ) ) );
        //result = ( result == True ) AND ( PercentageIncrease( Ref( array, -( i + 1 ) ), Ref( array, -i ) ) < IncreaseThreshold );
    }
    return result;
}


_SECTION_BEGIN("Rise && Fall Ribbon");
Price = ParamField("Price field",4);
Periods = Param("Consecutive periods", 3, 1, 100, 1 );
Ribbon1 = IIf( isRising(Price,Periods)== True , colorGreen, IIf( isFalling(Price,Periods) == True , colorRed, colorYellow ) );
Plot( 5, "Ribbon", Ribbon1, styleOwnScale | styleArea | styleNoLabel, 0, 100 );
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.

Back