I have an expert advisor that draws rectangle on a specifically defined bearish pinbar followed by a bullish candle. Please see the code below. It basically shows the rectan
ENUM_TIMEFRAMES tfs[];
OnInit()
then loop over values: for(int i=ArraySize(tfs)-1;i>=0;i--){showPinbarRectOnDispTime(tfs[i]);}
;showPinbarRectOnDispTime(ENUM_TIMEFRAMES tf)
function: double barOpen = iOpen(_Symbol,tf,i + 1);
and so on;