Few newbie amibroker questions

#1
I am need of help. What's wrong with this?

IndexClose = Foreign ("IndexA", "Close");
IndexBuy = IndexClose > MA(IndexClose, 200);
Buy = IndexBuy and Condition2;

I want to buy only if the closing price of IndexA is higher than its 200 day MA. But getting no results in backtest. Help>
 
Last edited:

Similar threads