@AlgoGeek @Neotrade @nithin @portfolioplus911 The below mentioned code, I use it to find the stocks that are “Near all time high”. I need an exact opposite of this afl to find stocks that are “Near all time low”. that is the opposite replica of this code. Could you please help me reverse the code .?? I’m really bad at coding. Your help would be much appriciated. I really really need this one code… Please guys help me out
a = Highest(Close);
a1 = Highest(High);
b = ((a / Close) - 1) * 100;
Filter = b < 1.5; // Near all time highs
SetOption(“NoDefaultColumns”, True );
AddTextColumn(Name(),“Ticker”,1.0,colorDefault,colorDefault,60);
AddColumn( DateTime(), “Date”, formatDateTime,colorDefault,colorDefault,68 );
AddColumn( IIf(ROC( C, 1 ) >=0, ROC(C,1),IIf(ROC( C, 1 ) < 0,ROC(C,1),Null)) ,"%C",1.1,colorDarkGrey,IIf(ROC( C, 1 ) >=0,colorPaleGreen,IIf(ROC( C, 1 ) <0,colorPink,colorLightGrey)));
AddColumn(C , "Close ",1.2, colorBlack );
AddColumn(a , “HighClose” , 1.2 , colorBlue);
AddColumn(a-C , “Closediff” , 1.2 , colorBlue);
AddColumn(b , “B” , 1.2 , colorBlack);
AddColumn(a1 , “Highest” , 1.2 , colorRed);
SetSortColumns(7);
_SECTION_END();