Bob,
I've tried putting your suggestion in the scan but by the time the loop is finished j is out of bounds..
So I modified the scan where buysell is set: I added an integer, triggerday and set it:
buysell := 1; triggerday := j;
Then at the bottom:
if buysell = 0 then println symbol, " , Buy @",SAR:6:2, " , Date:", date(triggerday); endif;
if buysell = 1 then println symbol, " , Sell @",SAR:6:2, " , Date:", date(triggerday); endif;
Assuming that Date(triggerday) correctly displays the date of the switch take a look at DELL. The scan says the switch occurred on 9/10/98 but when you use MS the switch occurs on 9/16/98.. So I may have to wait for Gary's implementation.
I appreciate the effort you've expended on this.
Dale |