I coded a simple indicator. It measures the percentage of the upbars to downbars in an uptrend or downtrend.
The uptrend is a SMA(8) of the Closes above a SMA(8) of the Opens. Vice verca for a downtrend. And I use 30
RangeNoGap bars. So every bar has the same length. The indicator returns a value in percentage of all upbars in an uptrend and of all downbars in a downtrend. You find the indicator in the attach.
In most of the markets the upbars are more than 60% in an uptrend and the downbars are more than 60% in a downtrend. In my opinion this is a clear edge.
Then I tried to code a strategy. The strategy buys simple every open in an uptrend and sells every close in a downtrend. But it did not worked out. Why is that so?