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

[amibroker] LineArray question



PureBytes Links

Trading Reference Links

Hi,

I have several signals in my trading system:

LongSetup: Cross(PDI(8),MDI(8));
StopBuy = ValueWhen(LongSetup,H);
Buy = H>StopBuy;
BuyPrice = Max(Open,StopBuy);

This waits for a DMI cross and sets a buy order at the high of that 
setup day.

I am trying to use LineArray() to draw a horizontal line from the 
longsetup day to the buy day at y level of stopbuy, but can't figure 
out how to reference the barindex of the longsetup day and the buy 
day:

OSBLine = LineArray( LONGSETUP ???, stopbuy, BUY DAY ???, stopbuy, 
False ); 
Plot(OSBLine, "OnStopBuy", colorGreen);

Cheers - alex



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM