thank you for your answer
i 've modified my script but the kijun value isn't the same as in fxcm charts.
I'd like to have the kijun daily in a 1 miniute trading.
So i've tried change timeframe to 1440(ie one day) and display it in a 1 muinute charte
what did i do wrong ?


Quote:


void run()
{
set(LOGFILE|PLOTNOW);
set(TICKS);


BarPeriod = 1;
TimeFrame = 1440;
frameSync(24);
vars H = series(priceHigh()),
L = series(priceLow()),
O = series(priceOpen()),
C = series(priceClose());
var Kijun = (MaxVal(H,26)+MinVal(L,26))/2;

TimeFrame = 1;
NumYears = 1;
StartDate = 20180201;

PlotScale = 8;
PlotWidth = 1200;
PlotHeight1 = 800;
PlotHeight2 = 600;
PlotDate = 20180201;
PlotBars = 2000;


Ichimoku();
plot("Kijun",Kijun,MAIN|LINE,BLUE);
}





Last edited by sergentGarcia; 03/10/18 18:29.