[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

Thank you Tomasz, I don’t know how I missed the STUDY function. That solves a lot of problems. But……….

 

To me it just leaves the problem of moving the line after being drawn by AFL. Just to make sure we are on the same page I am talking about having a minimum of 3 horizontal lines on the chart. The lines would need to be moved around on the chart. How would you accomplish that?

 

That’s why in my obviously novice understanding of Amibroker that the drawing tool “horizontal line” would be the way to go. Because after the lines are on the chart you can easily drag them to a new location. Here’s the scenario, there is a price formation that is forming let’s say a possible double top.

 

I would click my SHORT button (thanks Herman) and that would place 3 horizontal lines in the middle of the chart pane. From top to bottom they would be:

                               

 

________________________________________ STOP LINE

 

________________________________________ TRIGGER LINE

 

______________________________________________ TARGET LINE

 

But they are not in the correct location, so I want to be able to drag them where I want, the STOP LINE would be above the high.

 

      ________________________________________ STOP LINE

              i

            i  i           

           i    i                  I i

         i          I             I i

       i           I I I i   I

     i                     i

   i    ________________________________________ TRIGGER LINE

 

  i                 

 i                                                                                

I                                                                                            

______________________________________________ TARGET LINE

 

The TRIGGER LINE and TARGET LINE as shown. Let’s say in the above scenario price just keeps going higher and never breaks TRIGGER LINE.

I would then want to drag the lines to a new location for the next setup.

 

The question remains how would I be able to drag around the lines created by using the STUDY function? 

 

That’s why I thought the drawing tool “horizontal line” would trading be the most effective way to implement direct chart " ?

 

Thanks for your reply.

 

 

 

 

 

 

 

 

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Tomasz Janeczko
Sent: Sunday, March 16, 2008 12:52 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] $64,000.00 Question for Tomasz?

 

Hello,

 

Sorry but I don't get it. Could you pleas elaborate WHY do you think that

"using the drawing tool “horizontal line” would be the most effective way to implement direct chart trading" ?

 

Do you mean that you want to draw a line manually and use it as a trade entry / exit?

If so, you can access manually drawn trend line using Study() function

 

An actual example how to detect price cross vs manually drawn trend line is in the guide:

 

Note that horizonal line in AmiBroker is just a kind of a trendline so it works with Study() function too.


Best regards,
Tomasz Janeczko
amibroker.com

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

From: KBH

Sent: Sunday, March 16, 2008 10:57 AM

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

 

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
To: amibroker@xxxxxxxxxxxxxxx
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

__._,_.___

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

__,_._,___

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