Scan for relative out performers over S&P 500

Requesting Scan for relative out performers over S&P 500 in day 1, day 5, day 10, week 4, Week 13, Week 26, and week 52. This should include stock over price 30 and 10 day average volume of 500000.
 
1qK5916.png
 
1. Lot of semiconductor stocks are doing great in this list. 2. Major part of this outperformance may be linked to earlier pessimism (tariff related?) converted to current optimism (ease of tension with the deal?).
 
This is another scan from www.stokcharts.com that scans relative strength and other characteristics of performance
[group is SP500]
and [ROC(5) > 2.46]
and [ROC(10) > 2.83]
and [ROC(20) > 0.43]
and [rsi(14) >60]
and [PctRelative(5,$spx) > 1]
and [PctRelative(10,$spx) > 1]
and [PctRelative(20,$spx) >1]
and [PctRelative(50,$spx) > 1]
and [PctRelative(100,$spx) > 1]
and [PctRelative(200,$spx) > 1]
 
Code:
//The following is a code for relative performance in Amibroker//

_SECTION_BEGIN("Relative Performance");
_N( TickerList = ParamStr("Tickers", "^DJI,SPY,GE") );
NumBars = 20;
fvb = Status("firstvisiblebar");
Plot( 100 * ( C - C[ fvb ] ) / C[ fvb ], Name(), colorBlue );
for( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )
{
fc = Foreign( symbol, "C" );

if( ! IsNull( fc[ 0 ] ) )
{
   Plot( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ], symbol, colorLightOrange + ( (2*i) % 15 ), styleLine );
}
}
PlotGrid( 0, colorYellow );
_N( Title = "{{NAME}} - Relative Performance [%]: {{VALUES}}" );
_SECTION_END();

_N( TickerList = ParamStr( "Tickers", "^DJI,MSFT,SPY" ) );
fontsize = Param("Label font size", 10, 4, 30, 1 );
fvb = Status( "firstvisiblebar" );

for( i = 0; ( symbol = StrExtract( Name() + "," + TickerList, i ) ) != ""; i++ )
{
    fc = Foreign( symbol, "C" );

    if( ! IsNull( fc[ 0 ] ) )
    {
        relP = 100 * ( fc - fc[ fvb ] ) / fc[ fvb ];
        Plot( relP , symbol, color = colorLightOrange + ( ( 2 * i ) % 15 ), styleLine );

        x = LastValue( BarIndex() ) + 1;
        y = LastValue( relP );

        PlotTextSetFont( symbol, "Arial", fontsize, x, y, GetChartBkColor(), color, -fontsize/2 );
    }
}

PlotGrid( 0, colorYellow );
_N( Title = "{{NAME}} - Relative Performance [%]: {{VALUES}}" );
 

Similar threads

Top