Using Fractals & EMA to define support & resistance
In this article, we will look at a simple way to do that by using fractal levels as objective structure points, while using an EMA to trade in the direction of the prevailing trend. This creates a cleaner framework where market structure and trend are both defined mechanically rather than emotionally.
Instead of looking at how many touches a level has had to be classified as support or resistance, we look at fresh levels that align with the trend. Looking at support & resistance from this perspective allows us to take trades with the trend when it’s still relevant. Historical levels are less relevant here.
This template is designed to run on the Daily timeframe.
Step 0: Access the Strategy Concept Template [1 Min]
Click the button to load the trading bot directly onto your canvas:
Your canvas should display these blocks. Check? Let's continue!
Step 1: Export the Trading Bot [1 Min]
Before diving into customization, export the bot with the upper-right export button to download the file.
Step 2: Upload to MetaTrader 5 [4 Min]
Don’t know how? Refer to our help article "Exporting Your First Strategy".
Step 3: Understand the Logic [10 Min]
Structurally, a fractal support level is defined as:
Price is above the Daily 20-period EMA
A 2-period fractal was formed above the Daily 20-period EMA
The support level is drawn from the body low of the fractal candle
These characteristics make this iteration of support levels completely mechanical and allow for trading opportunities.
This concept is not difficult, but it’s a pretty big project, and I have already programmed the buy and sell side for this strategy. We can divide the creation of this no-code EA for the Trending Support & Resistance Strategy into 4 steps. To make it easier, let’s focus on the Support and buy-side only for now.
Identify the fractal support levels. The first step is to find the fractal levels by finding the lowest price of a 5-candle combination. If the fractal has been identified, the support level is stored on the body low of the fractal candle. If a new level is found along the way, the old level and order will be deleted.
Defining the trend and placing the order. This section houses all the rules to define a valid trade setup. Most importantly, the support level and current market price need to be above the 20-period EMA. If so, a buy limit order is placed on the support level.
Trade invalidation. If price happens to break the 20-period Daily EMA, we say that the uptrend has been broken and the EA will delete the open orders.
Trade Management. The last section is the trade management section and we use the lock-in profit management template. This means that after a certain floating profit has been reached, the stoploss will be moved into positive territory to lock in a predefined amount.
And that’s it! It only takes a few minutes to drag-and-drop the blocks and build this Trending Support & Resistance Strategy in Profectus. You can now add more rules to refine the entries, or add more confluences to the strategy.
This is what the strategy looks like on a chart.
Step 4: Make It Your Own [10 Min]
You can adjust and experiment:
Add more strategy rules or include the fractal levels component in your own strategies
EXPORT and see the differences.
Play around with timeframes and assets
EXPORT and see the differences.
Refine the rules to fit your own interpretation of the Trending Support & Resistance concept
EXPORT and see the differences.
This template is designed to run on the Daily timeframe.
Conclusion
The Trending Support & Resistance strategy removes all the ambiguity from the support & resistance concepts: simple rules and universal application. Now it’s your turn — backtest it, tweak it, and evolve it into your own winning system.
👉 Try the PRO version today
Templates are for educational purposes only.
Now it's your turn—apply the template, tweak the logic, and make it yours. 🚀



