Hi, eventB=Hold(Cross(EMA(C,10),EMA(C,200)),13); eventS=Hold(Cross(EMA(C,200),EMA(C,10)),13);
BarBB=BarsSince(eventB); - to know how many bars since the recent cross BarSS=BarsSince(eventS); - to know how many bars since the recent cross BeforeBuyCross= number Of bars it was down, just before the buy cross BeforeSellCross= number Of bars it was up, just before the sell cross Filter=eventB OR eventS; AddColumn( DateTime(), "Date", formatDateTime ); = the Date AND time when the Cross Happend ----------------------------- Except the first two lines everything seems to be wrong, please help me. Warm Regards. K Karunakaran
