Hi All,
I am seeking some help for Exploration which only display current results description details, and the previous results are invisible,
I would appreciated If one can modify and keep the previous results details are in visible.
_SECTION_BEGIN (" EMA Crossover ");
//=================================================================================
//Parameters
//=================================================================================
//moving averages
MA1 = EMA (C,20);
//moving averages
MA2 = EMA(C,50);
//moving averages
MA3 = EMA(C,100);
//moving averages
TimeFrameSet ( 4*inHourly );
MA4 = EMA(C,100);
MA5 = EMA(C,200);
TimeFrameRestore();
//---------------------------------------------------------------------------------
// 1. Filter Bar across EMA20
LSU1 = Cross (C,MA1) AND C > MA4 AND C > MA5 ;
SSU1 = Cross (MA1,C) AND C < MA4 AND C < MA5 ;
// 2. Filter Bar across EMA50
LSU2 = Cross (C,MA2) AND C > MA4 AND C > MA5 ;
SSU2 = Cross (MA2,C) AND C < MA4 AND C < MA5 ;
// 3. Filter Bar across EMA100
LSU3 = Cross (C,MA3) AND C > MA4 AND C > MA5 ;
SSU3 = Cross (MA3,C) AND C < MA4 AND C < MA5 ;
//=================================================================================
//Explorer
//=================================================================================
Filter = LSU1 OR LSU2 OR LSU3 OR SSU1 OR SSU2 OR SSU3 ;
SetSortColumns(4,-2,1);
AddTextColumn(WriteIf(LSU1 OR LSU2 OR LSU3,"LONG",WriteIf(SSU1 OR SSU2 OR SSU3,"SHORT","-")),"Status",1.0,colorBlack,
IIf(LSU1 OR LSU2 OR LSU3,colorBrightGreen,IIf(SSU1 OR SSU2 OR SSU3, colorRed,colorDefault)),50);
AddTextColumn(WriteIf(LSU1," 1Hr across EMA20 Buy ",
WriteIf(SSU1," 1Hr across EMA20 Sell ",
WriteIf(LSU2," 1Hr across EMA50 Buy ",
WriteIf(SSU2," 1Hr across EMA50 Sell ",
WriteIf(LSU3," 1Hr across EMA100 Buy ",
WriteIf(SSU3," 1Hr across EMA100 Sell ",
"-")))))),"Description",5.3,colorBlack);
//--------------------------------------------------------------------------------------------
AlertIf(LSU1,"SOUND C:\Windows\Media\chimes.WAV", "Buy", 3);
AlertIf(LSU2,"SOUND C:\Windows\Media\chimes.WAV", "Buy", 3);
AlertIf(LSU3,"SOUND C:\Windows\Media\chimes.WAV", "Buy", 3);
AlertIf(SSU1,"SOUND C:\Windows\Media\chimes.WAV", "Short", 3);
AlertIf(SSU2,"SOUND C:\Windows\Media\chimes.WAV", "Short", 3);
AlertIf(SSU3,"SOUND C:\Windows\Media\chimes.WAV", "Short", 3);
//=================================================================================
_SECTION_END();
Thanks
Steven