I wonder if someone could help me with my issue regarding Chikou Span (Lagging Span) below or above price.
I would like to use this as an indicator in my Ichimoku EA, but for some reasons the EA is just taking short trades,
but no long trades. When I leave the Chikou Span out the EA will take long and short trades.
Code: Select all
int ChikouIndicatorSignal()
{
int i;
int ChikouSignal;
int BarShift = iBarShift(NULL,TimeFrame,Time[i],0); // BarShift 0
// Validate Trend Direction
// Close Positions if Chikou touch Price:
double v_CHIKOUSPAN = iIchimoku(NULL, 0, e_tenkan_sen, e_kijun_sen, e_senkou_span_b, MODE_CHIKOUSPAN, BarShift);
if (v_CHIKOUSPAN < Low[25])ChikouSignal =-1; //short
if (v_CHIKOUSPAN > High[25])ChikouSignal =1; //long
return(ChikouSignal);
}
Code: Select all
double v_TENKANSEN = iIchimoku(NULL, 0, e_tenkan_sen, e_kijun_sen, e_senkou_span_b, MODE_TENKANSEN, BarShift);
double v_CHIKOUSPAN = iIchimoku(NULL, 0, e_tenkan_sen, e_kijun_sen, e_senkou_span_b, MODE_CHIKOUSPAN, BarShift);
if (v_CHIKOUSPAN < v_TENKANSEN) ChikouSignal =-1;
if (v_CHIKOUSPAN > v_TENKANSEN) ChikouSignal =1;