Hi everybody,
I am looking for an easy way to follow the trend. I need that my EA open long position only if the trend is ascending, and open short position only when the trend is descending. Mostly I need that when trend is horizontal it doesn't open trades. I am trying to find a way to tell my EA to follow a trendline but maybe I am not able to set it. I tried also with indicator rise and indicator fall but it not works very well. Can someone help me?
Trend folowing strategy
-
Hi everybody,
I am looking for an easy way to follow the trend. I need that my EA open long position only if the trend is ascending, and open short position only when the trend is descending. Mostly I need that when trend is horizontal it doesn't open trades. I am trying to find a way to tell my EA to follow a trendline but maybe I am not able to set it. I tried also with indicator rise and indicator fall but it not works very well. Can someone help me? -
Maybe if you show some example that should work, but it doesn't. Those blocks should work.
And what "follow a trendline" means. You see, the EA is just a program and it does exactly what you program it to do. If it needs to compare two values, it compares them. But the term Trend is more complex, so there is no block like "In trend?" or "In range?"
-
rsi and moving average
rsi7 above level 60 is up trend, two moving averages as
MA13>MA42 is up trend
... but all depends on your criteria, what is period of trend (long or short trend?) set it with periodes/timeframe -
Well, thank you guys for your reply.
I mean exactly this:
Price x> High of previous candle (so ID 1) ----> Go long.
Price <x Low of previous candle ----> Go Short
Good, these parameters works very well.I need an intraday strategy fast open/close, so today I tried it manually in real time on MT4 on Dax Germany 30 and it works very well because a strong buy trend, really strong. I got around 20 signals with a percentage of profit of 84%.
Substantially I need that my EA detect a strong trend (Buy or Long) and avoid to enter a trade during a lazy trend.
I tried to put an EMA rise with default settings and works well, but it gave me only 4 singnals, maybe (for sure) I did something wrong.
I share my project, please consider that on my broker DAX 100 pips mean 1 pip
https://fxdreema.com/shared/X2eF3jXhd
Thank you again -
For Buy checking, you could use "Price x> Indicator" for "Market Properties" "Highest Price (Candles Period)" Start Candle =1 and End Candle = Constant (so you can vary it) Get "Price Value"
Then opposite for Sells - Lowest Price...
This performs the same function as the Donchian Price Channels indicator (per the original Turtles).
The standard Turtle approach is to find the Highest/Lowest Price (end candle) in the last 55 candles (was daily in their settings), so this helps with not getting in before the trend (or "run") has established.
So play with the End Candle setting til you get a value you are happy with.