srinarayani13 wrote: Sun Oct 05, 2025 1:16 am
Hi
I want indicator to plot buy if below 2 conditions are honored
1. close is greater than open
2. next candle close is greater than open + close is above previous candle high than plot Buy on this 2nd candle close
plot sell if below 2 conditions are honored
1. close is smaller than open
2. next candle close is smaller than open + close is below previous candle low than plot Sell on this 2nd candle close
if possible, please code MTF version for above condition
This is for strategy explained in below video
1 Minute Scalping Strategy
https://www.youtube.com/watch?v=wgoR93pfcPo&t=1s
Hi,
Here is an indicator I upgrade by adding the two candle strong trend confirmation strategy you wanted. It's called the
3 MA Cross with alert mtf 3.03 STF.mq4 where STF is short for Strong Trend Filter.
The two sub windows in the screenshot show Bill Williams' Acceleration Oscillator (AC) and his Awesome Oscillator (AO). You will find those indicators in the Bill Williams folder of your MetaTrader 4 Navigator. The indicator uses the AC and AO in the background so you don't need to add them to your chart. However, if you want, you can add them to your chart to see how the indicator is interpreting the slopes of the AC and AO.
Below is only an excerpt from the User Notes I wrote at the top of the indicator code.
See the full User Notes for all the details. Let me know how this indicator works out for you.
Overview of the "3 MA Cross with alert mtf 3.03 STF (Strong Trend Filter)" Indicator
The "
3 MA Cross with alert mtf 3.03 STF" indicator builds on Bill Williams' Chaos Theory trading philosophy, as outlined in his book New Trading Dimensions: How to Profit from Chaos in Stocks, Bonds, and Commodities. Williams describes "trading in the zone" as the fourth dimension of trading—a psychological and technical state where market conditions align to favor high-probability trades, emphasizing momentum and trend alignment over reactive decisions.
This indicator operationalizes that concept by integrating four key elements that include Bill Williams' Acceleration/Deceleration Oscillator (AC) and his Awesome Oscillator (AO). All the elements operate in the background to produce reliable trading signals visible on the chart as up or down signal arrows. Here are the four key elements.
(1) Three Moving Average crosses for clear trend visualization
(2) The Acceleration/Deceleration Oscillator (AC) for Early Trend and Divergence Detection
(3) The Awesome Oscillator (AO) for momentum measurement
(4) The Strong Trend Filter
The result is an indicator that generates trade entry signals within "zones" of bullish or bearish conditions, reducing noise and false signals to help traders "stay in the zone" during sustained trends.
Summary
The "3 MA Cross with alert mtf 3.03 STF (Strong Trend Filter)" indicator, rooted in Bill Williams' Chaos Theory, facilitates high-probability trading by integrating four key elements: a Triple Moving Average Crossover strategy for trend and reversal detection, the Acceleration/Deceleration Oscillator (AC) for early trend identification, the Awesome Oscillator (AO) for momentum measurement, and the Strong Trend Filter strategy, which uses consecutive candlestick patterns to confirm robust market trends. Enhanced by the AC/AO ST Zone Filter with Trend Signal Reset and the ST Filter Ma with high/low averaging to emphasize trend continuity over raw price spikes, this indicator minimizes false signals and supports precise trade entries across various timeframes and asset classes, with risk management practices recommended for optimal performance.
Updated: This update doesn't change the functionality of the indicator in any way since it's just an explanatory update. So for the 100 who already downloaded the previous version, it's not necessary to download this update unless you want the little explanatory changes I made as described below.
I made a small change to the name of one of the options in the indicator. I changed the name of the "Use AC/AO Strong Trend Zone Filter with Trend Signal Reset?" option to "Use AC/AO Strong Trend Zone Filter & Show Re-entry Signals?" and I updated the User Notes to reflect that change. I also made a couple of other changes in the User Notes for clarity.
Update #2: Here is another update: 3 MA Cross with alert mtf 3.03 STF v2.mq4
This version 2 reduces the number of buffers from 21 to just 12 so it's more efficient and it gives exactly the same signals for whatever moving average type you choose. However, the main functional difference is that it draws signal arrows for only one type of moving average cross at a time, whereas the previous version can draw signal arrows for all three different type of moving average crosses at the same time.
Also, I just discovered that there was an error in the first version. The error was that if you selected only the "Use AC/AO Strong Trend Zone Filter & Show Re-entry Signals?" option and not the "Use Strong Trend (ST) Filter?" option, you would get the same result as if you selected both options. So here is the fixed first version just in case you still want to use it. I recommend using version 2 though.