How to search for a candlestick pattern on multiple timeframes

前端 未结 1 1495
小蘑菇
小蘑菇 2020-12-11 09:59

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

相关标签:
1条回答
  • 2020-12-11 10:16
    1. declare all the necessary timeframes ENUM_TIMEFRAMES tfs[];
    2. fill it in OnInit() then loop over values: for(int i=ArraySize(tfs)-1;i>=0;i--){showPinbarRectOnDispTime(tfs[i]);};
    3. edit the showPinbarRectOnDispTime(ENUM_TIMEFRAMES tf) function: double barOpen = iOpen(_Symbol,tf,i + 1); and so on;
    4. think whether you need just to draw the pin bar rectangles or somehow consume that data without drawing.
    0 讨论(0)
提交回复
热议问题