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

Re: [amibroker] Re: Basics - making a custom indicator



PureBytes Links

Trading Reference Links

Richard,

Prefs( 9 ) means - get the prefernces setting with identifier of 9.
The identifier 9 encodes ROC (not RSI) as described in
http://www.amibroker.com/guide/afl/afl_view.php?name=PREFS.

Each preferences setting has its identifier that allows referencing it.

To reference RSI prefs setting use Prefs( 10 ).

But... better user Param which is easier to use:

range = Param("RSI range", 14, 2, 50 );
 _N( ranstr = "("+WriteVal( range, 1.0 )+")" );
 Plot( vrsi = RSI(range), "RSI" + ranstr, -8 );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "richardlboroff" <rboroff@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, April 24, 2003 9:31 PM
Subject: [amibroker] Re: Basics - making a custom indicator


> OK, I'm making progress.
> 
> Removed the line at the top that says do not remove.
> 
> However 
> -----------------------------------------------------------------
>  //--RSI BUY
> 
> range = Prefs( 9);
> _N( ranstr = "("+WriteVal( range, 1.0 )+")" );
> Plot( vrsi = RSI(range), "RSI" + ranstr, -8 );
> ------------------------------------------------------------------
> I've got prefs 9, for a nine period rsi,
> 
> but on the chart it says RSI(10)
> 
> 
> What now?
> 
> Richard
> 
> 
> 
> 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/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/pDi3hB/OC5FAA/AG3JAA/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/