Sir, plze help and clear my fault.i think its fully wrong.  i need 
buy,sell, buycandidate, sellcandidate in a singile line in explorer 
scan with difrrent four color, but its come only one green , is my 
conditions wrong or its not possible in a singile line, thax in 
adwance, with regards  nifty46


_SECTION_BEGIN(" candidate ");

breakoutime = 101000;
afterbreakout0 = Cross(TimeNum(),101000);
afterbreakout1 = TimeNum()>=101000;
NewDay = Day()!= Ref(Day(), -1);
highestoftheday = HighestSince(newday,H,1);
Lowestoftheday =LowestSince(newday,L,1);
ORBHigh = ValueWhen(afterbreakout0,highestoftheday,1);
ORBLow = ValueWhen(afterbreakout0,lowestoftheday,1);

buycandidate = ValueWhen( afterbreakout0,lowestoftheday,1);
sellcandidate = ValueWhen( afterbreakout0,highestoftheday,1);

Buy= Cross(C,orbhigh) AND afterbreakout1 OR Cross(C,orblow) AND 
afterbreakout1;
Sell = Cross(orblow,C) AND afterbreakout1 OR Cross(orbhigh,C) AND 
afterbreakout1 ;color = color = color=IIf(ORBHigh,colorGreen,IIf
(ORBLow,colorRed,IIf(buycandidate,colorBlue,IIf
(sellcandidate,colorOrange,0))));
//color = iif(buy,colorGreen,iif(sell,colorRed,iif
(buycandidate,colorBlue,colorBlack));

Filter = Buy OR Sell ;
AddColumn(C,"CMP",0,colorBlue);
AddColumn(IIf(buycandidate or 
sellcandidate,ORBHigh,ORBLow),"ENTRY ",0,colorDefault,color);

_SECTION_END();

Reply via email to