Lol !
I have typed a kind of relative strenght .The purpose is to compare two graphs on 60 days .
(stock vs indice) .
Here is the code .I don't find the bug sorry and I am beginner with trading strategies ...
I have typed a kind of relative strenght .The purpose is to compare two graphs on 60 days .
(stock vs indice) .
Here is the code .I don't find the bug sorry and I am beginner with trading strategies ...
Code:
_SECTION_BEGIN("TEST");
SetBarsRequired(10000,10000); /* this ensures that the charts include all bars AND NOT just those on screen */
pt = 0;
indicator1 = Foreign("^FCHI","close);
i = 0;
while (i < BarCount);
{
pt[i] =Close[i+60]/Close[i];
indicator1[i]= Close[i+60]/Close[i];
Plot(pt[i] , "graph0" , colorBlue);
Plot(indicator1[i] , "graph1", colorRed);
i++;
}
_SECTION_END();