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

[amibroker] Re: how to plot the grid every 4 pips



PureBytes Links

Trading Reference Links

Tomasz
I got a endless loop detected in For loop error when i validated the 
afl. dunno why. i am on a 5 minute chart.

 
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx> 
wrote:
>
> Hello,
> 
> Turn off default grid, and then use PlotGrid function:
> 
> gridINCR = Param("incr",0.0004,1,10,0.0001);
> if( ParamToggle("show custom grid", "NO|YES", 1) )
> {
> SetChartOptions(1,chartShowArrows|chartShowDates, 0);
> firstbarvisible = BarIndex()==1 OR (Status("barvisible") AND NOT Ref
( Status("barvisible"), -1));
> GridMIN = LastValue( LowestSince( firstbarvisible, round((Low -
40)/10)*10  ) );
> GridMAX = LastValue( HighestSince( firstbarvisible, round((High 
+40)/10)*10 ) );
> steps = (GridMAX - GridMIN)/ gridINCR ;
> for(i=0;i < steps;i++)
>    PlotGrid(GridMIN+i*gridINCR);
> }
> else
>  SetChartOptions(1,chartShowArrows|chartShowDates);
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "murthysuresh" <money@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, October 12, 2007 1:27 AM
> Subject: [amibroker] how to plot the grid every 4 pips
> 
> 
> > hello
> > the grid shows for every 10 pips in the chart pane. how do i 
change it 
> > to every 4 pips? the docs states SetChartOptions but notfies that 
> > gridFlags will become obsolutely soon.
> > 
> > 
> > Regards
> > 
> > Seede
> > 
> > 
> > 
> > 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
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> >
>




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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/