chrism2671 / PyTrendFollow

PyTrendFollow - systematic futures trading using trend following
MIT License
324 stars 67 forks source link

how do you define a trend? #34

Open tiger2014 opened 11 months ago

tiger2014 commented 11 months ago

Hi chrism2671,

I want to know how do you identify a trend from a sideway. If we use ema cross, an fake trend is very common.

Thanks

chrism2671 commented 11 months ago

@tiger2014 You don't. That's the nature of the strategy, you make a lot of little losses every day, and get a big payout every once in a while that offsets it.

With diversification, a lot of these little losses cancel out.

westonplatter commented 10 months ago

@tiger2014 this is likely what you're after, https://github.com/chrism2671/PyTrendFollow/blob/master/trading/rules.py#L179

tiger2014 commented 8 months ago

Thanks