- Joined
- 30 June 2007
- Posts
- 7,200
- Reactions
- 1,226
Thanx for the reply Gringotts Banks , i am actually trying to add my BOut to my IndexFilterup if possible?
The IndexFilterup becomes true with both?
I assume you're doing a portfolio backtest with "all symbols" selected in the Analysis window.
Make sure you have symbol ^AORD in your database, with enough history. If you don't, use AQ to download from Yahoo finance.
Then substitute your breakout code where I have bolded below.
SetForeign("^AORD");
MAPeriod = Optimize("op",2,2,100,1);
IndexFilterup = C > MA(C,MAPeriod);
RestorePriceArrays();
Buy = IndexFilterup AND BOut;