PureBytes Links
Trading Reference Links
|
I am running 3.5. will someone tell me why I can't verify the below. thanks
PctAbvMAValue = (Average(Close,MAvgLen) * (100- PctAbvMA) / 100);
PctBlwMAValue = (Average(Close,MAvgLen) * (100+ PctBlwMA) / 100);
FDBVal = FastD(FDBLen);
FDSVal = FastD(FDSLen);
condition1 = c < PctAbvMAValue;
condition2 = c > PctBlwMAValue;
condition3=LinearregSlope(c,length3)<LRSBval;
condition4=Linearregslope(c,length4)>LRSSval;
condition5= (FDBVal <= FDBuy and FDBVal > FDBVal[1]) or
(FDBVal[1] <= FDBuy and FDBVal > FDBVal[1]);
condition6= (FDSVal >= FDSell and FDSVal < FDSVal[1]) or
(FDSVal[1] >= FDSell and FDSVal < FDSVal[1]);
if condition1 and condition3 and condition5 then begin
Plot1(L - .5,"GoLong");
end;
if condition2 and condition4 and condition6 then begin
Plot2(H + .5,"GoShort");
end;
|