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


Reply via email to