// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN( "NMN Explore" );
AASettings = Status( "action" );
//Filter = ( Buy OR Sell ) ;

if ( AASettings == actionExplore )
{
    // Exploration
	BuySellLetter   = IIf( Buy AND Sell, colorWhite, IIf( Buy, colorDarkGreen, IIf( Sell, colorRed, colorDefault ) ) );
	BuyBG           = IIf( Buy AND Sell, colorViolet, IIf( Buy, colorPaleGreen, colorDefault ) ) ; //IIf( Buy, colorPaleGreen, IIf( Sell, colorDarkRed, colorDefault ) );
	SellBG          = IIf( Buy AND Sell, colorViolet, IIf( Sell, colorDarkRed, colorDefault ) ) ; //IIf( Buy, colorPaleGreen, IIf( Sell, colorDarkRed, colorDefault ) );
    AddColumn( IIf( GroupID( 1 ) == "Z", Ref( C, -10 ), Ref( C, -3 ) ), "Start Price", 3.2, colorBlue, IIf( Sell, colorLavender, colorDefault ), -1 );
    AddColumn( C, "Close", 3.2,
               IIf( Buy AND Sell, colorWhite, IIf( Avg > C, IIf( Buy, colorGreen, colorRed ), IIf( Avg < C, IIf( Sell, colorGreen, colorRed ), colorDefault ) ) ),
               IIf( Buy AND Sell, colorViolet, IIf( Buy, colorPaleGreen, colorDefault ) ),
               -1 );
    AddColumn( Avg, "Avg. Price", 3.2, colorBlue, IIf( Sell, colorLavender, colorDefault ), -1 );
    AddColumn( V, "Total Vol.", 8 ) ;

    AddTextColumn( WriteIf( Buy, "Buy", "" ), "Buy", 1, BuySellLetter,  BuyBG, -1 );
    AddTextColumn( WriteIf( Sell, "Sell", "" ), "Sell", 1,  BuySellLetter, SellBG, -1 );
    AddColumn( round( ROC( Close, 4 )*100 ) / 100, "ROC(4)", 1.2, colorDefault, colorDefault, -1 );
}
_SECTION_END(); // End of "NMN Explore"