PureBytes Links
Trading Reference Links
|
Jayson,
Nice use of the Nz function. I didn't know it existed until you used it in your code. Many thanks for the frequent posts.
Regards,
Gary
Jayson <jcasavant@xxxxxxxxxxx> wrote:
Fred,
You need to first define what storsi is. Once that is accomplished then you may adjust the color of the bar based on your criteria. Try this as a custom indicator
period=Param("Periods",50);
smooth= 5;
storsi =Nz( ( RSI( period) - LLV( RSI(period) ,period) ) / ( ( HHV( RSI(period) ,period) ) - LLV(RSI(period),period) ) );
col=IIf(Cross(StoRSI,.20),colorYellow,colorBlack);
Plot(C,"triggerbar",col,64);
or paste the code above the line in the built-in price indicator that says
//--Indicator-End-- Line
Regards,
Jayson
-----Original Message-----From: fdenys [mailto:f.denys@xxxxxxx]Sent: Wednesday, October 01, 2003 4:09 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] starters questionHi, All How can i call a user(custom)indicator to trigger an action in the pricesheet.As an example,if i want to color a pricebar based on the custom indicator "StochRSI" I would expect something like:col=Iif(cross(StochRSI(),20),colorYellow,colorBlack);plot(price,"triggerbar",col,styleBar); StochRSI (plotted in another window) is not recognised- since it is not declared in pricesheet. So StochRSI is apparently not a (custom) function.Is it possible to make a userfunction "StochRSI" using AFL?FredSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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.
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
Yahoo! Groups Sponsor
ADVERTISEMENT<img
src="" width=300 height=250 border=0>
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.
|