Nothing shows up when I click Explore

I am trying to use the Explore function. However nothing shows up when I click on it. I have a very simple afl code. I am wondering if there is some setup I need to check.

Period1 = 35;
Period2 = 16;
Buy = Cross(WMA(C,Period2),WMA(C,Period1));
Sell = Cross(WMA(C,Period1),WMA(C,Period2));

addColumn( C, "Close", 1.0, colorDefault );

As per documentation you need Filter variable for exploration http://www.amibroker.com/guide/h_exploration.html

Period1 = 35;
Period2 = 16;
Buy = Cross(WMA(C,Period2),WMA(C,Period1));
Sell = Cross(WMA(C,Period1),WMA(C,Period2));

Filter = Buy OR Sell; // REQUIRED by exploration
addColumn( C, "Close", 1.0, colorDefault );

Alternatively you can just press "Scan" instead of "Exploration". Buy and Sell variables are used only by Scan, Backtest / Optimize.

1 Like