[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

atcFlagEnableInBacktest



PureBytes Links

Trading Reference Links

Hello,

I think I have misunderstood the atcFlagEnableInBacktest, we can't 
use in a backtest to optimize the period of a composite, because the 
foreign composite is not refresh.
for example below

Pds=Optimize("pds",14,10,20,2);
AddToComposite( IIf( MFI(14)>pds , 1, -1 ),
"~NewMFI", "X",atcFlagEnableInBacktest);

CompMFI=Foreign("~NewMFI", "V") ;

Trend=CompMFI>0;
scSwing(3);
Buy= swingbuy AND Ref(Trend,-1) ;