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

Re: [amibroker] graph0



PureBytes Links

Trading Reference Links

James

Forget Graph that's old.

TJ has simplified this with Plot(... ); function.

go to help file
Search Plot
Select first topic Using graph and Styles, colors etc.
    then read this 10 times and play with all the sample code.

To get you going:

Plot( Close, "close", colorred, 1) ; // plots the close with "Close" 
title in red with a line.
Plot( Close, "this is my special title", colorblack, 64);/plots close, 
my special title in black with candles.

To add a more complex title append this with

Plot(C, "My Close Price", colorRed, 1);

Title = Name() + Date() + "  whatever else I want" + " \n starting a new 
line" +
EncodeColor(colorRed) + "\n in a new color" +
EncodeColor(colorBlue) + "\n EMA 20 = " + WriteVal( EMA(C,20), 4.2);


Regards

ChrisB






James wrote:
> Here is a perfect example of why we newcomers find learning amibroker 
> so difficult. I am trying to find out the intricacies of why some 
> graphs/indicators plot titles and some don't. Why lines are different 
> thicknesses, etc. So I am comparing two diffent codes from the library 
> on the REI indicator. Specifically these lines here:
>  
> * *
>
> * Graph0 * =TDREI;
>
> **
>
> *Graph0Style*= 4 ;
>
> **
>
> *Graph0Color*= 4 ;
>
> **
>
> *Graph1*=varOverboughtSigna l;
>
> **
>
> *Graph1Style*= 1 ;
>
> **
>
> *Graph1Color*= 6 ;
>
> **
>
> *Graph2*=varOversoldSignal;
>
> **
>
> *Graph2Style*= 1 ;
>
> **
>
> *Graph2Color*= 6 ;
>
> // End: plot all lines
>
> **
>
> *Title* = Name () + " -TD REI: " + "(" + WriteVal ( *Graph0*,format= 
> 1.2 )+ ")" ;
>
>  
>
> and this here:
>
>  
>
> * *
>
> * Graph0 * = TDREI;
>
> _SECTION_END ();
>
>  
>
> First I go to the function reference to look at Graph but it is not a 
> function. A search of the Users guide tells me it is a reserved 
> variable. But it also tells me it is obsolete and that it should not 
> be used in new coding. But it doesn't tell me what replaced Graph0 (I 
> think it is plot, which is a function, but not 100% sure).
>
>  
>
> Granted, I'm not a computer programmer, but does this sound confusing 
> to anyone besides me?
>
> So how would the code above be written today?
>
>  
>
> James
>
>  
>
>  
>
>
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search. 
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping> 
>
>  


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/