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

[amibroker] Re: Graph paper background



PureBytes Links

Trading Reference Links

Terry, it's more efficient to code it up like this:

Plot((BarIndex() % 5) == 0,"",colorGrey50,styleHistogram | 
styleOwnScale, 0,1);

Use the mod (%) operator in preference to division whenever you 
can.  Of course, the parens are extraneous since the operator 
precedence would parse the expression the same, but it saves a bug 
later if the expression became more complicated (i.e. using OR's and 
AND's with and missing a paren combo to group the OR's correctly).

Steve


--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxxx> wrote:
>
> //Vertical lines every 5 bars:
> 
>  
> 
> Plot(frac(BarIndex()/5) == 0,"",colorGrey50,styleHistogram |
> styleOwnScale, 0,1);
> 
>  
> 
> //Horizontal lines. Adjust range and increments as needed:
> 
>  
> 
> for (x = 0; x < 100; x = x + 1) 
> 
> Plot(x,"",colorGrey50,styleNoRescale | styleNoLabel);
> 
>  
> 
> --
> 
> Terry
> 
>  
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] 
On
> Behalf Of samirkpatil
> Sent: Thursday, November 17, 2005 03:42
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Graph paper background
> 
>  
> 
> Hi All,
> 
>  
> 
> I wish to have a Graph paper background to plot OHLC price chart.
> 
> Has anyone done some code for this?
> 
>  
> 
> I don't know how to plot verticle lines using AFL.
> 
>  
> 
> Please suggest
> 
>  
> 
> Samir
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
>  
> 
> 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 other support material please check also:
> 
> http://www.amibroker.com/support.html
> 
>  
> 
>  
> 
> Yahoo! Groups Links
> 
>  
> 
>     http://groups.yahoo.com/group/amibroker/
> 
>  
> 
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> 
>  
> 
>     http://docs.yahoo.com/info/terms/
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> 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/