@bbhanushali ,
Hi Bro,
Need your assistance on this one. I am aware (learnt from the net) that using the ExRem command helps to avoid repetition of the same signals for the scrip. But what if there is no Buy or Sell conditions. In the following code we just have Accumulation Distribution printed on exploration :
//Wad: Larry Williams Acc/Distribution Status
TRH = IIf(Ref(C, -1) > H, Ref(C, -1), H);
TRL = IIf(Ref(C, -1) < L, Ref(C, -1), L);
ad = IIf(C > Ref(C, -1), C - TRL, IIf(C < Ref(C, -1), C - TRH, 0));
WAD = Cum(ad);
wu = wad > Ref(wad,-1);
wd = wad < Ref(wad,-1);
wad_status= WriteIf(wu, "Rising", WriteIf(wd, "Falling", "Neutral"));
wad_Col=IIf(wu, colorGreen, IIf(wd, colorRed, colorLightGrey));
//Exploration
AddTextColumn(ad_status, "Acc/Dist", 1, colorWhite, ad_Col);
Want to know couple of things :
(1) One is to avoid repetition for sure
(2) In addition in this case there is a color component as well. For e.g., if the conditions are not met per the code above, then default color is Grey.
In essence, what I want is, I want the exploration to print only Green or Red conditions, I guess we can do this by just removing the colorLightGrey and leave it with colorGreen, colorRed (guess common sense
. But in addition, what I am looking for is, if the condition is met, I do not want to the print to repeat unless there is a change. Is this possible with the ExRem command ?
Thank you so much for your help, in advance.
Warm Regards
JS