Hi,
Looks like I got it working, thanks Dennis. In terms of programming, it looks like: make the interval false, then if bigger then -200000 then make it true then get read out! How come if you change the -2000000 to say -999 you get 1.99948e+006, so where did the -2000000 come from? I would guess that is internal math stuff? Yes/No Where does one get the -2000000? Any way would have never thunk that at. Thanks again. Jerry Gress Stockton, Ca. _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Brown Sent: Tuesday, October 14, 2008 6:39 PM To: [email protected] Subject: Re: [amibroker] How to use 'Interval' to change charts? 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.
