Forums ProRealTime English forum ProOrder support Strategy TrendImpulse v1 Reply To: Strategy TrendImpulse v1

#133285
Wil

I’m confused about this part of the code:

Its logic seem to favor trena=-1 (since it’s only 1 if trend = 1 and line1>=line2). How does this make sense?

Also, I’m confused by the numbers switching from 1 for bullish to -1 for bullish to 2 for bearish, etc. It would make more sense to just use 1 for bullish and -1 for bearish imho.

Does anyone else have any comments about the code? Maybe we can improve it together 😉