Price Trends

Viewing 1 post (of 1 total)
  • #64760

    Hello,

    Is there a neat piece of code that defines trend by means of price bars making higher highs and higher lows?

    In my trend breakout system which starts at ‘x’ hour I want PRT to check that the high at this time is the highest of the recent ‘n’ bars. So for example if my breakout system starts at 0800 I want PRT to check that if trend conditions are met, that it only initiates trade if the high is the highest high of the day since midnight. I had been using the code below but I think this could be wrong.

    Rather than use EMAs I want price to define the trend, so is there also a way of saying only trade if price (on H1 for example) is making higher swing highs and higher swing lows (and vice versa for shorts)?

    Many thanks.

Viewing 1 post (of 1 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login