PureBytes Links
Trading Reference Links
|
I am attempting to sell on the fist occurance of
a "lower high" that occurs after a minimum hold period.
The code below does not present errors, however
the sell signals materialize a lot later expected and
at unusual times.
Can anyone offer some guidance to help me achieve my objective?
Thanks kindly,
Gosub283
================================================
//Here's a snippet showing my SELL code.
HoldPeriod = 5;
//SELL RULES(S)
Sell = False; // sell only after 'n' bars
//How many days since a buy occured ?
DayCount = BarsSince(Buy==1);
//Sell when DayCount exceeds the hold period and todays close <
yesterday's
Sell = DayCount > (HoldPeriod-1) AND High < Ref(High,-1);
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 other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|