Lets speak About Trend Strategies - page 2

 
Conor Mcnamara #:

I try to use non-lagging indicators which are quantitative, and not based on market structure price action.

I use 3 trend indicators together and I'm seeing that it's still not always easy to "beat" the market with all the fakeouts and market reactions to news impact.

You might want to look into qualifying those news events and factoring their previous, forecast, and actual values into your strategy. Moreover, you could measure historic reactions to specific news events and apply to stats to trading. This can be implemented in an indicator or an EA.
 
Conor Mcnamara #:

My trend strategy is to create what I call "chance" trades. You think it's a good time to enter based on the current trend, but after entering - sometimes it's another story because of incoming volatility. So I try to take a small loss and make the EA find the next opportunity.

It's very difficult to perfect the art of scalping like this in automation. I'm using a fixed number of bars to determine trend weakness and close the trade if the profit is still floating in a small loss after a certain amount of bars since trade open. If I can find more intelligent Exit conditions, then I could really get somewhere.

In your posted chart, I see quite a few entries during sideways price movements. I would apply a filter to ensure that the current price swing is big enough to justify a reversal. You might even have the appropriate filter already:

Code Base

Price Percentage Zigzag (No timeframes)

Conor Mcnamara, 2025.08.15 14:19

Zigzag which changes wave direction based on price percentage change on the asset

 
Ryan L Johnson #:

In your posted chart, I see quite a few entries during sideways price movements. I would apply a filter to ensure that the current price swing is big enough to justify a reversal. You might even have the appropriate filter already:

using the zigzag could indeed be a good way to police trends, I'm just tinkering around with a few different settings now without adding more tools (trying to see how far I can go while being as minimal as possible)

 
Conor Mcnamara #:

using the zigzag could indeed be a good way to police trends, I'm just tinkering around with a few different settings now without adding more tools (trying to see how far I can go while being as minimal as possible)

At the moment, I'm actually tinkering around with;

Forum on trading, automated trading systems and testing trading strategies

Indicators: Price prediction by Nearest Neighbor found by a weighted correlation coefficient

Ryan L Johnson, 2026.04.14 18:25

A couple more slight improvements:

  • Changed OnInit() from a void to an int, so it returns INIT_SUCCEEDED now,
  • Added a terminal-wide GlobalVariable (GV) that stores the first future price value of the indicator (CopyBuffer() doesn't work in an EA with "future indicator Buffer values"), and
  • Added OnDeinit() wherein the GV is automatically deleted from the terminal.

The purpose of those changes is to make the indicator more suitable for automated trading. If you need more future price values for your purposes, just loop through bars 0 to 48 at the end of the code and update the GV value.