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

RE: [amibroker] starters question



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>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
<FONT face=Arial color=#0000ff 
size=2> 
 
period=<FONT 
color=#0000ff>Param(<FONT 
size=2>"Periods",<FONT 
size=2>50<FONT face=Arial 
color=#0000ff>);
smooth= <FONT face=Arial 
color=#0000ff size=2>5<FONT face=Arial 
color=#0000ff>;
storsi =<FONT 
color=#0000ff>Nz( ( <FONT 
size=2>RSI( period) - LLV<FONT 
size=2>( RSI(period) ,period) ) / ( ( 
HHV( RSI<FONT 
size=2>(period) ,period) ) - LLV<FONT 
size=2>(RSI<FONT color=#282828 
size=2>(period),period) ) );
col<FONT 
color=#0000ff>=IIf<FONT 
size=2>(Cross(<FONT 
size=2>StoRSI,.20),<FONT 
size=2>colorYellow<FONT 
color=#0000ff>,<FONT 
size=2>colorBlack<FONT 
face=Arial color=#0000ff>);
Plot<FONT color=#282828 
size=2>(C<FONT 
color=#282828 size=2>,"triggerbar"<FONT 
color=#282828 size=2>,col<FONT 
color=#282828 size=2>,64<FONT 
color=#282828>); 
 
<FONT face=Arial color=#0000ff 
size=2>or paste the code above the line in the built-in price indicator that 
says     
//--Indicator-End-- Line
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----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: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







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.