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

Re: [amibroker] $64,000.00 Question for Tomasz?



PureBytes Links

Trading Reference Links

Herman,

I can see the post from your link below.

The main problem I see for dragging a line under AFL control, it the time between executions --especially if you have a number of charts, or if the charts have complex AFL code.  AFL execution will be prioritized on a mouse down over a chart, but after that you are at the mercy of the normal course of events for AFL executions, and a mouse up does not trigger a new execution either.

One possible remedy is if AB allows has a chart setting that also allows a mouse up to trigger the AFL execution like a mouse down will.

Another possibility is the addition in AFL of detecting modifier keys.  You could use a modifier key like shift to mean that the click is setting a stop line.

The possibility that is already available is your chart buttons.  You click a button for the mode you want to be in, like setting a stop on a click.

However, for fast chart trading, the fastest most intuitive method for the trader would be the best.  Experimentation is in order.

Best regards,
Dennis Brown


On Mar 16, 2008, at 7:23 PM, Herman wrote:

Hi d,

yes that is something like i do. it is on the UKB but the 'Publish' button doesn't seem to publish this post. It is there, and is published, however it appears i am the only one who can see it.

try and see if you can open the post:

Best regards,
herman

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

Sunday, March 16, 2008, 7:19:54 PM, you wrote:

>
I haven't tried it but it might be possbile to doe this via your AFL using the getcursormousebuttons and then detect when the mouse goes down and stays down while moving.  If getcursorx/yposition detects that it is in the region of the line then it could redraw that line as the cursor moves. When the mouse is lifted then that would mark where the line should stop moving.  

 

I don't know how fast this would be or how "kludgy" it would look - but its something that could be tried.

 

d



Sent: Sunday, March 16, 2008 6:23 PM
Subject: RE: [amibroker] $64,000.00 Question for Tomasz?

Let me ask this question. Besides the drawing tools available from the “Draw” toolbar is it possible to create a horizontal line in AFL code that after it is plotted on chart pane and when the mouse cursor is hovering over it,  it 
can be moved by dragging it with the cursor?

 

I realize I can use the “Draw” toolbar to create a “horizontal line” that can be dragged around chart pane after it is placed on chart and that I can also set the Study ID of the line and the color but it seems repetitive to do that for 3 or more lines.

 

That’s why I first asked if all the properties that create the “horizontal line” from the “Draw” toolbar are available to be recreated in AFL. The main property that (I believe) sets it apart from other AFL createable horizontal lines is it’s ability to be dragged around the chart by just hovering over it with the mouse cursor.

 

Thanks,

 

 

 

 

 

 

 

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxxOn Behalf Of Tomasz Janeczko
Sent: Sunday, March 16, 2008 11:48 AM
Subject: Re: [amibroker] $64,000.00 Question for Tomasz?

 

It is the other way: Study function does not plot, what it does is to READ the study from the chart and present them to AFL as an array.
Therefore of course you can move the trend line manually and it is all reflected in Study() function output.
This tutorial shows exactly that:

Best regards,
Tomasz Janeczko
amibroker.com

 

 

That would be awesome Herman. I really appreciate you being so generous with all of your time and efforts. 
Is it possible once lines are plotted using the Study function to drag them around the chart, like is possible with the any of the drawing tools?  
Again thanks for your generosity,
Bruce

 

From: Herman [mailto:psytek@xxxxxxxx
Sent: Sunday, March 16, 2008 1:00 AM
To: KBH
Subject: Re: [amibroker] $64,000.00 Question for Tomasz?

 

If i may jump in...

 

I have several chart trading applications but I need to verify the code before posting... IBc and AFL now have all essential functions to create a very nice chart trading application with automatic order placement/modification. The only things missing are are a few pixel functions (see suggestion) that are required to develop precise chart-overlays, however i am confident these functions will follow - hopefully soon ;-) 

 

Perhaps the quickest way to share chart-trading code is to do it in Blog fashion, the same way I did the Button series. The user can then use the ideas and go their own way or can set tight and wait for the code to reach the required functional level. When such series reach maturity (ever?) we can delete all preceding development posts and just keep the last one - or let the earlier posts remain there to show how the development progress worked - not sure which way to go. Code written by me is never finished...there are always new ideas.

 

While writing this i made the decision: I have created a Chart-Trading Category under Real-Time AFL Applocations and will start publishing some of the programming techniques there soon.

 

Keep watching for new posts :-)

 

best regards,
herman

 

 

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

 

Sunday, March 16, 2008, 5:57:50 AM, you wrote:

 

After going thru the 4 different methods you suggested for drawing lines, I come to the conclusion that
using the drawing tool “horizontal line” would be the most effective way to implement direct chart trading.

 

I realize I can draw 3 horizontal lines on the chart and then modify the properties as needed: color, study ID, etc…
but that is not  efficient.

 

Also since the actual trading parameters would need to be in AFL it seems only logical to control horizontal lines at code level also.

 

So for the $64,000.00 question; Is it possible to create/access/control all of the properties that make up the “horizontal line” from the draw toolbar and reference them in AFL code?

 

Thanks for your reponse.

 

 

 

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Tomasz Janeczko
Sent: Saturday, March 15, 2008 11:38 AM
Subject: Re: [amibroker] Question for Tomasz?

 

Hello,

 

You can draw your lines using FOUR different methods:

 

a) PlotGrid - this function allows to plot horizontal grid line at any leve (the easiest method)

 

Plot( C, "Price", colorBlack, styleCandle ); 
PlotGrid( LastValue( Close ), colorRed ); // this example plots horizontal line at the value of last close 

 

b) Plot - using regular Plot you are able to plot any line including horizontal lines:

 

Plot( C, "Price", colorBlack, styleCandle ); 
Plot( LastValue( C ), "LastClose", colorRed ); // this example plots horizontal line at the value of last close 

 

 

c) you can draw trendlines (not only horizonal) using combination of Plot and LineArray:
Examples here:

 

 

d) you can draw ANYTHING you can imagine, using low level gfx:

 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: KBH 
Sent: Saturday, March 15, 2008 8:50 PM
Subject: [amibroker] Question for Tomasz?

 

Tomasz,

 

Are the properties that define the drawing tools somewhere in an AFL code? In other words I want to be able to
create a horizontal trend line thru AFL code and be able to control its behavior in my code.  

 

The goal is trading from price chart by creating horizontal trend lines that would trigger entries, set stops and 
targets, with a click of a button I want to place 3 or more trend lines in price pane and then be able to adjust 
there location, once set then arm them and when price crosses orders are sent out.

 

I understand that I could use the horizontal trend line drawing tool to create 3 trend lines then go to properties 
and set the study ID of each line. But I want to automate the process thru AFL.

 

Thanks for your input.

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1330 - Release Date: 3/15/2008 2:36 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1330 - Release Date: 3/15/2008 2:36 PM

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1330 - Release Date: 3/15/2008 2:36 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1330 - Release Date: 3/15/2008 2:36 PM

 

 

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1330 - Release Date: 3/15/2008 2:36 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM

 

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM

 


__._,_.___

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

__,_._,___