PureBytes Links
Trading Reference Links
|
Dear Frank,
A. Copy the code from # 2239 or from here.
maxgraph = 5;
KUP=EMA((H+L+C)/3,10)+EMA(H-L,10);
KDOWN=EMA((H+L+C)/3,10)-EMA(H-L,10);
graph1 = KUP;
graph0 = close;
GRAPH2=EMA((H+L+C)/3,10);
graph2style=1;
graph3 =KDOWN;
graph0barcolor=1;
graph2barcolor=3;
graph3barcolor=3;
graph1barcolor=3;
OUT=C;
GRAPH4=OUT;
GRAPH4STYLE=2;
GRAPHXSPACE=0.5;
GRAPH4BARCOLOR=IIF(C<KDOWN,15,0);
BUY=CROSS(C,KDOWN);
SELL=CROSS(KUP,C);
Paste in Automatic Analysis.
Select appropriate "Apply to" and "Range".
Press "scan".
It is working.
B. Paste the same in Indicator Builder.
Select "Scaling" Automatic.
Press Apply.
It is graphing Close (Black), Keltner Bands (Greyblue) and "out of
the market" red bars.
P. S. Buy-sell is for "scan" mode.
Dimitris Tsokakis
--- In amibroker@xxxx, Frank <fesnay@xxxx> wrote:
> If anyone has any advice, please drop me a note.
> I am new to AmiBroker, and am still deep in a learning curve.
> I took the "Keltner Bands" example, and loaded the code into the
page for
> scripts. The
> results were OK. Next I loaded the "test" for automatic buy and
sell
> signals on that
> page, and get the following messages when trying to run analysis:
> "AmiBroker" message box - " You need to define Filter Variable"
> "AFL" error box - unknown identifier - " ^ pointing toward a missing
> semi-colon
> "AFL" error box - unknown identifier - " ^ pointing toward a
blanked out C
>
> I attempted to run the test on a single stock over 6 years - no
results
> listed.
> No help was found when reading the "Help" pages or the manual for
my problem.
> I have no doubt that the error is something I am missing - Thanks
in advance.
> Frank
|