Академический Документы
Профессиональный Документы
Культура Документы
In this example, you will use the Formula Editor to write the AFL code
for a simple trading system, run the code as a Backtest on the historical
data of one stock, review the results, plot the Buy and Sell arrows, plot
the Equity Curve.
Start AmiBroker.
n Lhe ta$LeL
up through V
Fastm : M( c, 5 ),-
SlowMA = MA( C. 20 3;
In setting up Automatic Analysis, you need to load the file you want
processed. Example 5 showed one way to do that. Here is another - a
shortcut that coordinates Formula Editor with Automatic Analysis.
Formula Editor has a toolbar. The rightmost icon in the toolbar is an ex—
clamation point. If you hover your mouse over it, the tooltip says Anal-
ysis. When you Click that icon, the file that is open in Formula Editor
is loaded into Automatic Analysis and Automatic Analysis is opened.
This makes for an easy cycle of editing and analyzing. After the edit,
click the Analysis icon and go directly on with the analysis.