Hello,
Trying to learn....Foreign( "^aord", "Close" )> MA(Foreign( "^aord.au", "Close" ),30);
The above line of code is trying to say the Australian All Ordinaries index must be above the 30MA of the All Ordinaries Index..as it is I get no result in the back test...
Any help appreciated to correct the problem...full code below
maxpos = 10; // maximum number of open positions
SetOption("InitialEquity", 100000 ); // set initial equity = 100K
SetOption( "MaxOpenPositions", maxpos );
SetPositionSize( 100 / maxpos, spsPercentOfEquity );
Buy = C > ma(C,10) AND C > 1 AND C*V>25000 AND MA(v,50)>100000 AND
EMA(0.4*ROC(C,65)+ 0.3*ROC(C,130) +0.3*ROC(C,260),30)>10 AND **Foreign( "^aord", "Close" )> MA(Foreign( "^aord.au", "Close" ),30);**
ApplyStop(stopTypetrailing,
stopModePercent,
//Optimize( "max. loss stop level", 20, 8, 24, 1 ),
23,
True );
Sell=0;
Short=0;
Cover=0;