hi, im trying to ge my head around afl. ive just read the intro to amibroker and been using the basic codes and would like to add some paremters.
here is the code
// Example6c.afl
// changed MA 20 50
// A trading system based on the
// cossover of two moving averages.
// Buy when the faster moving average
// crosses up though the slower moving
// average.
// Sell when the faster moving average
// crosses down through the slower
// moving average.
FastMA = MA( C, 20 );
SlowMA = MA( C, 50 );
Buy = Cross( FastMA, SlowMA );
Sell = Cross( SlowMA, FastMA );
i would like to add another MA of 5.
and have a buy signal when the 20MA crosses the slow 50MA and the 5MA is above both of them.
Also id like to incorporate an ADX value of <20. if the shares have d
had an adx of <20 in the recent 3 or 4 weeks.
i would appreciate some assistance
ive looked in the afl library and theres so many there. cant find too many basic codes.
What did you find in the Help File or here in the Forum when you searched on "trailing stop"? The community here tends to help those who make some effort to solve their own problems rather than just asking others to do all the work for them.