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

[amibroker] Coding help.



PureBytes Links

Trading Reference Links

Gentelmen,
I need your help to transform this idea into AFL code.
Thanks in anticipation.
The idea is to plot an arrow above (or under) the bar indicating a
reversal day as per the belowmentioned:
1- Upside Reversal:
If Day n low < Day n-1 low.
AND Day n close > Day n-1 close or Day n-1 high.
2- Downside Reversal:
If Day n high > Day n-1 high.
AND Day n close < Day n-1 close or Day n-1 low.
3- Upside key reversal day.
IF Day n close < Day n-1 low.
AND Day n+1 close > Day n close and day n-1 close.
4- Downside key reversal day.
IF Day n close > Day n-1 close.
AND Day n+1 close < Day n close and day n-1 close.
Your help is highly appreciated.
Best regards.




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006