[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Missing bbTopSell definition



PureBytes Links

Trading Reference Links




Try 
this Ron....
<FONT face=Arial color=#0000ff 
size=2> 
and 
make sure you get the whole line... not truncated... for each 
line:
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2> 

fClose = <FONT 
face=Arial>Ref(C,-<FONT 
color=#ff00ff>1);
fHigh = <FONT 
color=#0000ff>Ref(H,-1<FONT 
face=Arial>);
fLow = <FONT 
color=#0000ff>Ref(L,-1<FONT 
face=Arial>);
fAdvDrop = fClose - <FONT 
face=Arial>Ref(C,-<FONT 
color=#ff00ff>2);
fAtr = <FONT 
color=#0000ff>Ref(ATR(<FONT 
color=#ff00ff>8),-1<FONT 
face=Arial>);
diffHl = fHigh-fLow;
fStoch = <FONT 
color=#0000ff>Ref(StochD(<FONT 
color=#ff00ff>14),-1<FONT 
face=Arial>);
fBBandTop=<FONT 
color=#0000ff>Ref(BBandTop(C,<FONT 
color=#ff00ff>20,2),-<FONT 
color=#ff00ff>1);
fOpenCond = fClose - <FONT face=Arial 
color=#ff00ff>0.5 * fAtr;
fOpen = <FONT 
color=#0000ff>Ref(O,0<FONT 
face=Arial>);
fStopLoss = fHigh + <FONT face=Arial 
color=#ff00ff>0.5 * fAtr;
bbTopSell =<FONT 
color=#0000ff>  IIf( 
fClose > fBBandTop 
AND <FONT 
face=Arial color=#008000 size=2>
// The stock must first puncture and close outside (above) the upper 
Bollinger Band
// The closer the closing price is to 
the high of the day, the better.
fClose > (fLow + <FONT 
face=Arial>0.75 * diffHL ) 
AND
// And the bigger the day's advance, the better
fAdvDrop > (<FONT 
color=#ff00ff>1.5 * fAtr) AND<FONT 
color=#008000>
// On the following day, the stock must 'gap' down 
below the prior day's Close.
// This 'gap down' is crucial as it serves as the 
most important criteria of
// the entire strategy.
fOpen < fOpenCond 
AND
// Overbought condition added
fStoch > <FONT 
color=#ff00ff>80, 1, <FONT 
color=#ff00ff>0 );<FONT face=Arial color=#008000 
size=2>
/* Exploration Columns for Sorting */
NumColumns = 
10<FONT 
face=Arial>;
Column0 = 
fOpen;
Column1 = 
fOpenCond;
Column2 = 
fStopLoss;
Column0Name 
= "Open"<FONT 
face=Arial>;
Column1Name 
= "OpenCond"<FONT 
face=Arial>;
Column2Name 
= "StopLoss"<FONT 
face=Arial>;
Column0Format<FONT 
face=Arial> = 1.2<FONT 
face=Arial>;
Column1Format<FONT 
face=Arial> = 1.2<FONT 
face=Arial>;
Column2Format<FONT 
face=Arial> = 1.2<FONT 
face=Arial>;
Filter = 
bbTopSell == 1<FONT 
face=Arial>;
Buy = 
0<FONT 
face=Arial>;
Sell = 
bbTopSell>0<FONT 
face="Courier New" size=1>;






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.