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

RE: [amibroker] loop vs arrays



PureBytes Links

Trading Reference Links

Thanks for the reply. I did as you suggest, but I am having a problem using the Plottext function to try and mark the top of the bar. Is there a way to get the x and y coordinates of the bar array that corresponds to the bar that meets the definition? I can use Plotshape, but it is text I need to show. I have tried various methods but no luck?

 

Tom

 

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ara Kaloustian
Sent: Tuesday, September 23, 2008 12:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] loop vs arrays

 

You need to define your 3bar pattern:

Pattern = your definition;

 

BarsNumber = Valuewhen(Pattern,barIndex(),1);  // this gives you the bar index when pattern is completer

 

 

----- Original Message -----

From: TOMSTI

Sent: Tuesday, September 23, 2008 12:05 PM

Subject: [amibroker] loop vs arrays

 

Hello All,

 

I need to plot a chart that first of all shows 3 bar swing high and swing lows. After that, I need to show and mark if a swing made a higher swing than the previous swing (or lower). I can do this using a loop and remembering the previous swing high or swing low bar, but am wondering if there is any way of avoiding a loop and accomplishing the same thing?

 

Any thoughts appreciated. I have gone through the archives and the knowledge base, but, unless I missed it, I did not find a solution.

 

Thanks

Tom

 

 

__._,_.___

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

__,_._,___