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.

 

Reply via email to