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

Re: [amibroker] How to use 'Interval' to change charts?



PureBytes Links

Trading Reference Links

Oops make that:  ChartVolume= -interval() - 2000000; }


On Oct 14, 2008, at 8:41 PM, Dennis Brown wrote:

interval() will work.  You will have to bias the number based on the format returned. 

HINT:
VolumeMode=False;
if ( interval() <= -2000000 ) { VolumeMode=True; ChartVolume= interval() + 2000000; }

BR,
Dennis

On Oct 14, 2008, at 6:10 PM, Jerry Gress wrote:

Hello All,
 
Ref: Volume charting;
 
 
I have a simple countdown volume display (as below). How do I automatically in AFL change the interval to what ever the chart interval is, now 250 vol but if go to 1000 vol how can the display use 1000?  Have tried interval(), TimeFrameMode(2), VarGet(“Interval”).
 
Any help would be appricated.
 
_SECTION_BEGIN( "Title" );
myVol = 250 - LastValue( Volume );
myvolcolor = IIf(myVol > 45, colorRed,colorGreen);
 
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}}  Open %g, Hi %g, Lo %g, Close %g  ", O, H, L, C )   );
_SECTION_END();
 
GfxSetBkMode( 1 ); // set transparent mode
GfxSetOverlayMode( 1 );
gtext2 = Param( "Up Down", 400, -55, 1000, 5);
gtext1 = Param("Move Sideways",850,0,1000,50);
GfxSelectFont( "BOLD Times New Roman", 26, 800, True );
GfxSetTextColor(myvolcolor);
GfxTextOut("Vol = " +myvol   , gtext1 , gtext2 );
 
 
Again thanks in advance.
 
 
Jerry Gress
Stockton, Ca.
 


__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

__,_._,___