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

Re: [amibroker] Re: Drawing a line from AFL



PureBytes Links

Trading Reference Links

Thank you Graham,

yes that would work. I could use Persistent variables (See UKB) to do that, however it still means doing a significant amount of work, in terms of execution time and actual programming. I'll have to try it one day to see how that improves performance. 


I would prefer to simply save the chart display (image) before the current (real-Time) part that is being calculated to a permanent Layer (memory) and leave it there for automatic recall. A function to save the display before a certain Timedate might just be handy. 


Since most of our historical charts, except for recent content, don't really need to be calculated on each pass, it just seems a waste of time. We are just recalculating the same stuff over and over. When memory and disk space was expensive this recalculation may have made sense, but today? I've got many GBytes of unused HD space just sitting around doing nothing - i am sure so do most of us.


But perhaps there are other reasons why this cannot be done.


best regards,

herman


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

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


Saturday, November 17, 2007, 10:15:41 PM, you wrote:


>

You can do it from parameter window, include a parameter to write to text file for each symbol or a single large file ("a" if already exists, else "w") for permanent storage. this would include the start/finish dates and prices, and can include an identifier and colour. 

Then in the afl you just read this text file and draw the lines, making certain the dates are visible on screen so that you only include the relevant lines thus reducing run time



-- 

Cheers

Graham Kav 

AFL Writing Service

http://www.aflwriting.com 



On 18/11/2007, Herman <psytek@xxxxxxxx> wrote:

That is what i was looking for, I thought perhaps it was already out there.


h


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

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


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/

>  




 

__._,_.___

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

__,_._,___