This AFL will scan a database and generate buy/ sell signals whenever a stock closes above last month's high or below last month's low.
This is a beautiful system and can yield fantastic results if risk management is properly done.
As usual, none of my AFLs have targets so one should hold a trade with a trailing SL (last month's low for long positions).
Note: there is no volume filter so restrict your analysis / scans to the top 100-200 most liquid stocks
Here is the code:
>>>
Note:
- Run in scanner mode
- ExRem removes multiple signals.
- Refer Amibroker help file for more assistance.
This is a beautiful system and can yield fantastic results if risk management is properly done.
As usual, none of my AFLs have targets so one should hold a trade with a trailing SL (last month's low for long positions).
Note: there is no volume filter so restrict your analysis / scans to the top 100-200 most liquid stocks
Here is the code:
>>>
Buy=Cross(C,TimeFrameGetPrice("H",inMonthly,-1));
Sell=Cross(TimeFrameGetPrice("L",inMonthly,-1),C);
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
<<<
Note:
- Run in scanner mode
- ExRem removes multiple signals.
- Refer Amibroker help file for more assistance.
No comments:
Post a Comment