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

[amibroker] MACD Histogram



PureBytes Links

Trading Reference Links




Gary,
 
You can do what you want using the Param() 
function....Here is a sample...
 

//Multiple Ticker Parameters
//coded by Anthony Faragasso
//March 9,2003
//example using RSI()
pds=Param<FONT 
size=2>("pds"<FONT 
size=2>,14<FONT 
size=2>,5<FONT 
size=2>,21<FONT 
size=2>,1<FONT 
size=2>);//all other tickers<FONT 
size=2>
pdsndx=Param<FONT 
size=2>("pdsNDX"<FONT 
size=2>,14<FONT 
size=2>,3<FONT 
size=2>,17<FONT 
size=2>,1<FONT 
size=2>);//select your ticker<FONT 
size=2>
pdsdji=Param<FONT 
size=2>("pdsDJI"<FONT 
size=2>,14<FONT 
size=2>,4<FONT 
size=2>,15<FONT 
size=2>,1<FONT 
size=2>);//select your ticker<FONT 
size=2>
pdsgspc=Param<FONT 
size=2>("pdsGSPC"<FONT 
size=2>,14<FONT 
size=2>,3<FONT 
size=2>,21<FONT 
size=2>,1<FONT 
size=2>);//select your ticker<FONT 
size=2>
x=IIf(<FONT 
color=#0000ff size=2>Name()==<FONT color=#ff00ff 
size=2>"^NDX",pdsNDX,<FONT color=#0000ff 
size=2>IIf(<FONT color=#0000ff 
size=2>Name()==<FONT color=#ff00ff 
size=2>"^DJI",pdsDJI,<FONT color=#0000ff 
size=2>IIf(<FONT color=#0000ff 
size=2>Name()==<FONT color=#ff00ff 
size=2>"^GSPC",pdsGSPC, pds)));
x=LastValue(x);
y=RSI(x) ;
Color=colorBlue;//select your line 
color
Plot(y,<FONT color=#ff00ff 
size=2>"x",color,styleLine);<FONT color=#ff0000 
size=2>//plots RSI()
PlotGrid(<FONT color=#ff00ff 
size=2>30);
PlotGrid(<FONT color=#ff00ff 
size=2>70);
GraphXSpace=15<FONT 
size=2>;
Title="..."<FONT 
size=2>+Name()+ 
EncodeColor<FONT 
size=2>(Color)+" - RSI ( "<FONT 
size=2>+WriteVal<FONT 
size=2>(x,1<FONT 
size=2>)+" ) "<FONT 
size=2>+EncodeColor<FONT 
size=2>(colorBlack)+"= "<FONT 
size=2>+ WriteVal<FONT 
size=2>(y,1.2<FONT 
size=2>)+" %"<FONT 
size=2>;
 
Anthony
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Gary 
  A. Serkhoshian 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, March 07, 2004 1:00 
PM
  Subject: Re: [amibroker] Re: Title of 
  Windows (Enhancement Request)
  
  My only experience stems from Tradestation so I'll use that as my 
  example.  You can have multiple charts all with the same indicators (e.g. 
  RSI), but each chart has different RSI lengths (e.g. 9, 14, 21, 34 for 4 
  different charts).
   
  Symbol specific chart params seems like overkill from my perspective, but 
  I can say that different time frames can warrant different indicator lengths 
  irrespective of which symbol is being viewed.  
   
  I don't discount that certain symbols react better to different lengths 
  as compared to other symbols, but this is something I manage via 
layouts.
   
  Regards,
  GarySalil V Gangal <salil_gangal@xxxxxxxxx> 
  wrote:
  <BLOCKQUOTE class=replbq 
  >Gary,Don't 
    know what you mean by chart-specific parameters.Do you mean custom 
    parameters specific to a *security* ? (Meaning say one RSI period value 
    for S&P 500, and different one for Russell 2000 
    ?)Regards,- Salil V Gangal--- In 
    amibroker@xxxxxxxxxxxxxxx, "Gary A. Serkhoshian" 
    <serkhoshian777@xxxx> wrote:> While I understand the need 
    for title enhancements, I would love to see chart-specific parameter 
    sets first as it drives me nuts having to create a duplicate indicator 
    in order to have another set of parms.>  > 
    Regards,> Gary> > Anthony Faragasso 
    <ajf1111@xxxx> wrote:> Salil,> > Probably not the 
    most efficient way....but by creating a composite ...you> can put 
    a name in the window title...check the image attached.> > 
    Anthony> ----- Original Message ----- > From: "Salil V Gangal" 
    <salil_gangal@xxxx>> To: <support@xxxx>> Cc: 
    <amibroker@xxxxxxxxxxxxxxx>> Sent: Sunday, March 07, 2004 9:42 
    AM> Subject: [amibroker] Title of Windows (Enhancement 
    Request)> > > > Tomasz,> >> > 
    Using 'Title' one can customize the title of the Indicator.  
    However,> AFAIKT there> > is no way of customizing the 
    title of whole of the window.  The title> simply> 
    > displays  Symbol/Full-Name ... nothing more.  So an 
    enhancement request to> allow> > customization of the 
    Title of Window as well.> >> > Look at the picture at 
    URL below ===>> >> > <A 
    href="">http://www.fundvision.com/wwwboard/messages/45830.shtml> 
    >> > Each window has a custom title.  Something on similar 
    lines will be nice> to have.> >> > The same 
    picture makes a case for a 'Group of Windows' as well !  It 
    will> be nice> > for me to have a 'Group of Windows' that 
    shows me all the 'breadth' I want> in single> > shot 
    rather than making several seperate windows making them visible> 
    selectively.> >> > Regards,> > - Salil V 
    Gangal> >> >> > --- Salil V Gangal 
    <salil_gangal@xxxx> wrote:> > > Tomasz,> > 
    >> > > As far as I know there is nothing like a 'Group of 
    Windows' in> AmiBroker. I guess> > > it> > 
    > will be useful to have this.  At times it is useful to view 
    some windows> as a> > > group.> > > For 
    example, see the two pictures at the URLs> > >> > 
    > <A 
    href="">http://www.fundvision.com/wwwboard/messages/45827.shtml> 
    > > <A 
    href="">http://www.fundvision.com/wwwboard/messages/45835.shtml> 
    > >> > > I like to view the *4* windows in the first 
    picture as *1* group.  And> the other> > > 
    *4*> > > windows in the second picture as *1* group.  What 
    I have in AmiBroker> are 8> > > windows> > 
    > and I make 4 of them visible at one time and the other 4 at other 
    time.> Instead,> > > it> > > will be useful 
    in my case to have two groups of windows that I can see> as a 
    whole> > > in> > > one shot rather than making 4 
    of them visible one after the other.> Specifically in> 
    > > this case the groups will be> > >> > > 
    ... 1. Group of windows for COT - S&P 500> > > ... 2. Group 
    of windows for COT - Nasdaq 100> > >> > > Please 
    let me know if there already is an implementation of a Group of> 
    Windows in> > > AmiBroker that I don't know about or if there 
    is a simpler way of> implementing> > > this.> 
    > >  Another method I used was to make 2 databases - one for COT 
    - S&P 500> and the> > > other> > > 
    for COT - Nasdaq 100.  It works and is also somewhat of a nice> 
    work-around.> > >> > > Regards,> > > 
    - Salil V Gangal> > >> > > 
    __________________________________> > > Do you Yahoo!?> 
    > > Yahoo! Search - Find what you're looking for faster> > 
    > http://search.yahoo.com> 
    > >> > >> > > Send BUG REPORTS to 
    bugs@xxxx> > > Send SUGGESTIONS to suggest@xxxx> > 
    > -----------------------------------------> > > 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> 
    > > Yahoo! Groups Links> > >> > >> 
    > >> > >> > >> >> 
    >> > __________________________________> > Do you 
    Yahoo!?> > Yahoo! Search - Find what you're looking for 
    faster> > <A 
    href="">http://search.yahoo.com> 
    >> >> > Send BUG REPORTS to bugs@xxxx> > 
    Send SUGGESTIONS to suggest@xxxx> > 
    -----------------------------------------> > 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> 
    > Yahoo! Groups Links> >> >> >> 
    >> >> >> > > ---> 
    Outgoing mail is certified Virus Free.> Checked by AVG anti-virus 
    system (<A 
    href="">http://www.grisoft.com).> 
    Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004> 
    > > Send BUG REPORTS to bugs@xxxx> Send SUGGESTIONS to 
    suggest@xxxx> -----------------------------------------> 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 
    > > > Yahoo! Groups SponsorADVERTISEMENT> Click 
    Here> > ---------------------------------> Yahoo! 
    Groups Links> >    To visit your group on the 
    web, go to:> <A 
    href="">http://groups.yahoo.com/group/amibroker/>   
    >    To unsubscribe from this group, send an email 
    to:> amibroker-unsubscribe@xxxxxxxxxxxxxxx>   
    >    Your use of Yahoo! Groups is subject to the 
    Yahoo! Terms of Service. > > > > > 
    ATTACHMENT part 2 image/jpeg name=s.JPG> > > 
    ---------------------------------> Do you Yahoo!?> Yahoo! 
    Search - Find what you're looking for faster.Send 
    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 
    
  
  
  Do you Yahoo!?Yahoo! Search - <A 
  href="">Find what you’re looking 
  for faster. Send 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 
  


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








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.