Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

MA Alignment Exploration for Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
exploration, moving average, amibroker

I am a beginner in creating afl. I want to share with you my simple code, it is called the MA alignment exploration.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Moving Average Exploration");

MA20=MA(C, 20);
MA50=MA(C, 50);
MA100=MA(C,100);
MA200=MA(C,200);

condition = C>MA20 AND MA20>MA50 AND MA50>MA100 AND MA100>MA200;

AddColumn(Close, "Close", 1.2);
AddColumn(Volume, "Volume", 1.2);
AddColumn(MA(C, 9), "MA9");
AddColumn(MA(C, 20), "MA20");
AddColumn(MA(C, 50), "MA50");
AddColumn(MA(C, 100), "MA100");
AddColumn(MA(C, 200), "MA200");
AddColumn( condition, "Condition", 1.0);

Filter = 1;

_SECTION_END();

2 comments

1. luckytrader

How do you use this? it doesn’t seem to work with my Amibroker ver 6.0. Thank you!

2. data

It’s an exploration so you use it via the analysis window.

Leave Comment

Please login here to leave a comment.

Back