|
If you use shift zero is actually like this:
You want to trade GBPUSD, use GBPJPY & USDJPY values for entry
at the start of 1 Hour bar:
GBPJPYopen=iOpen("GBPJPY",0,0);
GBPJPYclose=iClose("GBPJPY",0,0);
USDJPYopen=iOpen("USDJPY",0,0);
USDJPYclose=iClose("USDJPY",0,0);
GBPUSDopen=GBPJPYOpen/USDJPYOpen;
GBPUSDClose=GBPJPYClose/USDJPYClose;
The GBPUSDClose you get on bact test is actually more or less the value of GBPUSD at the end of the bar...
So you already know what will happen within 1 Hour..
But on forward test, off course it wont work because you haven't got the Final Value of GBPJPY & USDJPY yet...
|