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

Re: [amibroker] Plotting Vertical Lines at fixed interval



PureBytes Links

Trading Reference Links

Bill,

Here's the screenshot showing how the vertical plots appear.  As you can see, the vertical lines appear at a regular interval, but necessarily from the selected bar.  What I desperately want is that from the bar which is currently selected, the vertical plots should appear on the right at the specified interval (calculated by the AFL itself, which is not an issue).

My understanding is Cum(1) counts the bars right from the very first bar for the ticker.  That might explain why the plots appear in the wrong place.  Can we solve this by other means?

Thanks,
Lal

----- Original Message ----
From: Lal <klal25@xxxxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, 18 March, 2008 4:24:28 PM
Subject: Re: [amibroker] Plotting Vertical Lines at fixed interval

Bill,

Thank you for the response.  I've incorporated your suggestion and it does seem to work.  However, there is a slight problem.  Will post again with a screenshot showing what is happening.  But I think we're nearly with the solution!

Thanks,
Lal

----- Original Message ----
From: wavemechanic <timesarrow@xxxxxxxx h.net>
To: "AmiBroker, User" <amibroker@xxxxxxxxx ps.com>
Sent: Tuesday, 18 March, 2008 3:23:19 PM
Subject: Re: [amibroker] Plotting Vertical Lines at fixed interval



Nope, got it backwards:
 
plot(iif(barindex( ) >= selectedvalue( barindex( )), .....
 
Bill

Try this:
 
plot(iif(selectedva lue(barindex( )) >= barindex(), cum(1)%20 == 0, null), "", color, stylehistogram| styleownscale) ;
 

Bill






Rise to the challenge for Sport Relief with Yahoo! for Good __._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Attachment: Vertical_Lines-2.png
Description: PNG image