PureBytes Links
Trading Reference Links
|
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:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Dennis Brown
Sent: Tuesday, October 14, 2008
6:39 PM
To: amibroker@xxxxxxxxxxxxxxx
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.
if ( interval() <= -2000000 ) { VolumeMode=True; ChartVolume=
interval() + 2000000; }
On Oct 14, 2008, at 6:10 PM, Jerry Gress wrote:
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 )
);
GfxSetBkMode( 1 ); // set transparent mode
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 );
__._,_.___
**** 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
*********************************
__,_._,___
|
|