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

[amibroker] Re: DOUBLE SMOOTHED STOCHASTIC



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "mrdavis9" <mrdavis9@xxxx> wrote:
> I have included a link to the AFL library of a Double smoothed 
Stochastic indicator posted by W Bressert. First, I have to explain 
that I am barely starting to use Amibroker, and the last time that I 
programed anything was in about 1962 at the University of Oklahoma. I 
took a half semester course in Fortran, and we used punch cards to 
run an equation that described heat transfer.  This is the full 
extent of my programing skills. I bet there is no Amibroker user less 
qualified than I am who is attempting to learn to use Amibroker. 

Ron,
I could equally bet that very few could solve an equation through 
fortran punch cards, so, do not depreciate yourself.
As for the code, I see the last parenthesis missing in
sell = cross (80,DSS
Is it the same in your IB window? If positive, it will not work for 
this reason. [Let me suppose that it would not work in punch cards 
also !!]
This group is one of the best in the internet space, feel free to ask 
ANY question, many members give their valuable time to communicate 
here.
DT
PS
BTW, how do you feel when reading about "the new for/if/else...", 
especially with the word "new"...
 Below, I have copied the code that I found in the library.  I have 
also copied the error that I got when I loaded it into Amibroker via 
the indicator builder.  I would appreciate any help I can get 
regarding the error that I got.  Is the error in the code, or did I 
do something wrong?  Ron D
>   
> http://www.amibroker.com/library/detail.php?id=78
> 
> 
> title = "127-3 DSS" + "   "  +  fullname() + "   "  +  Date( ) ;
> 
> Slw = 4;  Pds = 4;
> 
> A = Ema((CLOSE-LLV(LOW,Pds))/(HHV(H,pds)-LLV(L,Pds)),Slw)*100;
> 
> DSS = ema((A-LLV(A,pds))/(HHV(A,Pds)-LLV(A,Pds)),Slw)*100;
> 
> maxgraph = 10;
> graph0 = DSS; graph0color = 2;    graph2 = DSS; 
> Overbought = 80;  Oversold =  20; 
> 
> graph2barcolor = IIF (graph2 > overbought, 4, 
>                                    IIF (graph2 < oversold,5,6));
> 
> buy = cross (DSS, 20);
> sell = cross (80,DSS
> 
> 
> 
> Syntax error at line 23, column 21:
> 
> 
> Sell = Cross (80,DSS
> --------------------^


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get a FREE REFINANCE QUOTE - click here!
http://us.click.yahoo.com/2CXtTB/ca0FAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/