Count Bars from indicator
Topic: Count Bars from indicator
Hi, have the following problem, I would like to use a trend indicator in my strategy (see Att_1).
In my test EA (see Att_2) is an example for OpenBuyOrder with MACD and for CloseLongPositions with ForexTrend_v2, currently only with value = 1.
How can I now determine that CloseLongPositions is only executed if the trend bars are at red for five periods or bars (see bottom snapshot), if they are less than five then nothing should be done!
Have tried everything possible with operands FOR, PeriodSeconds () .. unfortunately without success.
Thank you in advance for your help!