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

RE: [amibroker] Re: LineArray instead getting closer I think?



PureBytes Links

Trading Reference Links

This is the latest

 

y0 = LastValue (Close);

 y1 = LastValue (Close - 5);

 

 x0 = BarCount ;

 x1 = BarCount - 5;

 

Line = LineArray( x0, y0, x1, y1,1);

Plot(C, "C", colorBlack, styleCandle);

Plot( Line, "Trend line", colorBlue );

 

Unfortunately nothing plots, all I am trying to do is using AFL code

create a horizontal trend line, that plots in the middle of the price pane

and that can be selected and moved, ultimately I want to use it as a trigger

to transmit orders to IB, using Tomasz’s  Trend Line Broken Code.

 

Any help is appreciated

 

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

 

I am trying to plot a horizontal trend line in the center of a
price chart thru AFL code and after it is plotted on price chart I can
select it and move it around the chart. I realize I can uses the
horizontal trend line drawing tool to create the above but I want to
be able to create it using code.
 
Also I would like to be able to control the length and position.
Here is what I got so far but it won't
do what I want it to do. All it does is put a horizontal line
across my chart which I can't move. I understand why it can't move,

 

because of the "665" but I don't know what to do about it. Don't
laugh it took me and 1 ½ hours to create it.
 
Plot(665, "Line", colorRed, styleLine,0, 0, 0);

Thanks,
 Bruce
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date:
3/14/2008
> 12:33 PM
>

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008 12:33 PM

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008 12:33 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008 12:33 PM

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008 12:33 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date: 3/14/2008 12:33 PM

__._,_.___

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/1329 - Release Date: 3/14/2008 12:33 PM