Saturday, November 17, 2007, 6:41:35 PM, you wrote:
> Well, Amibroker has drawing "layers" already for manual chart mark-
> ups. Why doesn't Tomasz just provide a way to programatically get to
> them? That way, there would be no programming (e.g., looping)
> required to update them on the user's part. Once drawn, Amibroker
> would take care of any refreshes needed when the lines come into the
> viewable area.
> --- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>> 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
>> To: Thomas Z.
>> Cc: amibroker@xxxxxxxxxxxxxxx
>> 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
>> > http://groups.yahoo.com/group/amibroker/
>> > Individual Email | Traditional
>> > http://groups.yahoo.com/group/amibroker/join
>> > (Yahoo! ID required)
>> > mailto:amibroker-digest@xxxxxxxxxxxxxxx
>> > mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
>> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
>> > 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
>
> 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/
>