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

Re: [amibroker] Drawing a line from AFL



PureBytes Links

Trading Reference Links

I agree loops are not very efficent, especially in real time.
 
Depending how many lones you have, you might use combination of static variables (containing the x,y coordinates for lineArray) and use dynamic variables to create the name of the static variable.
 
There is certainly overhead with this also, but may be less depending on number of lines you want to keep.
 
 
----- Original Message -----
From: Herman
Sent: Saturday, November 17, 2007 8:31 AM
Subject: Re: [amibroker] Drawing a line from AFL

Thanks Thomas and Ara, 


But the linearray must be recalculated and plotted each time the chart refreshes, else it disappears.


Drawing a line by hand will leave the line on the chart exactly where it was plotted without subsequent processing overhead (from the user point anyway).


When I draw many lines, for example tradelines or zigzags, I need to use a loop and the overhead gets too much (using 5 sec bars). While if the line would stay displayed like a study, it would require no maintenance. All I would need to do is calculate the last leg. far more efficient...


herman


For tips on developing Real-Time Auto-Trading systems visit:

http://www.amibroker.org/userkb/


Saturday, November 17, 2007, 10:38:01 AM, you wrote:


> Hello,


> you could use the following code:


> Value = LineArray(xStart = 0, yStart = 10, xEnd = BarCount, yEnd = 10);

> Plot(Value, "Value", 4, 1);


> Check out the LineArray function help for additional parameters that you

> could use.


> Kind regards,

> Thomas Zmuck

> www.PatternExplorer.com




> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf

> Of Herman

> Sent: Saturday, November 17, 2007 3:06 PM

> To: AmiBroker Users Group

> Subject: [amibroker] Drawing a line from AFL


> Is it possible to draw a line on the chart using AFL, so that the line

> "stays permanently displayed". Just like when you draw a line by hand.


> I know there are complicated procedures, using static variables, but I would

> like to take advantage of the "study" memory not to have to refresh the

> lines with each execution.


> Any examples would be appreciated.


> TIA,

> herman

>  




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

>  

__._,_.___

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

__,_._,___