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

Re: [amibroker] graph0



PureBytes Links

Trading Reference Links

periods = Param( "Periods", 15, 1, 200, 1 );

Ksmooth = Param( "%K avg", 3, 1, 200, 1 );

Dsmooth = Param( "%D avg", 3, 1, 200, 1 );

K=StochK(periods,Ksmooth);

//]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]

D=StochD(periods,Ksmooth,DSmooth);

//]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]

SetChartOptions(0,0,chartGrid30|chartGrid70);

periods = Param( "Periods", 15, 1, 200, 1 );

R= RSI(periods);

rk=(r+k)/2;
 
It is currently>>Plot(rk,"rk" ,colorred,styleline);   and, for a thick line, it is >>Plot(rk,"rk" ,colorred,stylethick);
 
Paste this into a custom indicator, and it will work.  Be sure to include everything above here.     Ron D
==================================================================================
 
----- Original Message -----
From: James
Sent: Friday, February 22, 2008 1:25 AM
Subject: [amibroker] graph0

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=varOverboughtSignal;

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.
__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___