I'm developing an EA that uses the Ichimoku Indicator. When I check the various values, I noted that the value for the Chikou Span is incorrect. Please see screenshot attached.
How can I correct this?
If anyone has encountered this problem, please point me in the right direction.
Appreciated.
#include <Trade/Trade.mqh>
CTrade Trade;
#include <Indicators/Trend.mqh>
CiIchimoku*Ichimoku;
intOnInit(){
Ichimoku = new CiIchimoku();
Ichimoku.Create(_Symbol,PERIOD_CURRENT,9,26,52);
return(INIT_SUCCEEDED);
}
voidOnTick(){
chimoku.Refresh(-1);
double Tenkan = Ichimoku.TenkanSen(0);
double Kijun = Ichimoku.KijunSen(0);
double SpanA = Ichimoku.SenkouSpanA(0);
double SpanB = Ichimoku.SenkouSpanB(0);
double Chikou = Ichimoku.ChinkouSpan(26);
Comment("Tenkan Value is: ",Tenkan,"\n",
"Kijun Value is: ",Kijun,"\n",
"Span A Value is: ", SpanA,"\n",
"Span B Value is: ", SpanB,"\n",
"Chikou Span Value is: ",Chikou);
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Good morning;
I'm developing an EA that uses the Ichimoku Indicator. When I check the various values, I noted that the value for the Chikou Span is incorrect. Please see screenshot attached.
How can I correct this?
If anyone has encountered this problem, please point me in the right direction.
Appreciated.