This strategy is best used for Trend based trading. While market is trending, price still makes smaller ranges.
Darvas boxes show breakouts from these small ranges, while still following the original market trend.
If Scanner percent is very less, means pair is in low volatility or overall market is ranging and should be avoided.
Use fewer Max Past Bars in scanner like 500 when scalping. To get most recent trend results.
Scanner needs the Arrows ex4 file to work.
Demo only works for Arrows indicator on EURUSD or USDJPY or AUDUSD. Does not work with the scanner.
Product also on mql5.com marketplace:
- Check for a Darvas Box arrow
- Max Box Height
- Min Box Height
- Max entry distance from Darvas Box
- Price and MA Check
- NRTR Trend Check
- MA Slope Check
- Heiken Direction
- HTF MA Check
- Get Darvas:
- Get Volume Candles:
- Get NRTR:
- Get Heiken:
- Sample Arrows Template:
Note that Darvas Arrows shows only Arrows and Debug messages. To see Darvas boxes, use the above indicators and sample template.
For a scanner to work, iCustom needs to be called. And iCustom requires less than 64 settings.
So, more options cannot be added to this strategy. As scanner options are maxed out 🙂
- Check Darvas Box Breakout
- Check Price Above/Below MA or Darvas Box has crossed MA
- Min, Max Box Height
- Max Distance Between Entry Price and Darvas Box
- NRTR Trend Check
- Heiken Trend Check
- MA Slope Check
- Higher Timeframes Price and MA check
- Max Spread Check
- Fixed Stop Loss and Take Profit Option
- Variable Stop Loss at Darvas Box or Darvas Pivots or selected MA
- Calculation of Profit Loss Points and Win/Loss Count and Profit Percentage
- Debug Texts on bars to show why signal skipped
Main Darvas Settings:
Check out Darvas Explained to see Darvas properties in greater details:
Min/Max Box Height:
You can define the best box heights using this for each timeframe. Leave blank to remove these checks.
Use crosshair tool to calculate Min/Max heights or distances:
Max Entry Distance From Darvas (Points): The Distance used is points between Darvas box nearest edge and Entry price (close price) at arrow signal bar.
This distance should be less than specified points in this setting. Leave blank to remove this check.
For BUY check if price is above MA, and for SELL check if price is below MA.
If “Darvas Box crossed MA” true, Darvas box Top should be above MA and bottom below MA. This is because price always retraces back to MA. So starting a trade with a box near MA will give best results.
Price Above/Below MA: Price type to be checked. Keeping Close price is best here.
Num Volume Bars: You can select 0-3 bars. And it will check total past 3 bars for high volume. Suppose this number is 2, then out of 3 bars (including signal bar), at least 2 should have high Volume.
It uses the indicator VolumeCandles.ex4 for Volume calculations. Available above in downloads section.
Detailed description here:
Check NRTR Trend. If Trend is Upwards there will be a blue line and Downwards trend has a red line.
Read more about NRTR in detail here:
MA Slope Check:
Use slope check to see if that MA is sloped Up or Down for Buy or Sell.
It uses the Slope MA Indicator available here:
MA Slope Video Tutorial:
For Buy, it will check if slope is above the Slope Threshold. For Sell, it will check if slope is below the negative -Slope Threshold.
It uses the Radian Normalized Slope type for finding the MA’s slope. Normalizing the slope values are necessary, so that all timeframes have similar slope values.
Since this slope is normalized, it’s values can change a little over time.
But slope is calculated only once for all bars at the beginning. And then only for new bars since then. So there is no repainting. But if you reload the indicator all over again, then slope values might change.
Use Heiken to check if current heiken trend is aligned with signal direction. Set Heiken period 2 value as more like 13, for smoother heiken and longer trends.
Set heiken period 2 value as low like 4 for smaller trend scalping.
Min Heiken Candle Length (Points): To check that Heiken candle body is at least this minimum length. Leave blank to keep this check off.
Values should be like
and so on, for all timeframes you are using. Please use crosshairs tool to find best heiken ashi lengths. Note that keeping heiken candles very smooth will cause it to have very small body.
So keep this check off, if using Heiken Smoothed like with earlier example of 2 and 13 period.
Higher and Lower Timeframes MA Check:
Check if price is above MA (UPTrend) for BUY and below MA (Downtrend) for SELL on selected number of Higher Timeframes.
If current timeframe is H1 and Num of HTF is 2, and signal is BUY, then it will check if H4 and D1 both for an Uptrend. And vice-versa for SELL.
When finding longer trends, it is better to check if current TF trend is aligned with higher timeframe trend.
Detailed scalper common settings and win/loss explained:
- Fixed SL and TP Distances (Main)
- Variable StopLoss:
- At Darvas Box Edge
- Or at Last number of Pivot points. Suppose Num is 2 Pivots. Then it will find the lowest/highest of the 2 pivots for BUY/SELL and place SL.
- Or at MA which is used for the MA Check
- StopLoss Extra Points: These points will be added to the calculated Stop Loss
- Debug Text to show Why a Signal is skipped
- Select Start Shift and Max Past Bars to Scan
- Adjust Arrows
- Refresh Every given number of Ticks
Debug Message Meanings:
Debug messages show what’s happening behind the scenes 🙂
The green messages indicate that the signal was BUY and red messages indicate that the signal was SELL.
This message is the only one which shows that a signal has happened:
Darvas box height is less than the MIN Box Height set in settings for that timeframe
Darvas box height is more than the MAX Box Height set in settings for that timeframe
The distance between Darvas box edge and close price (signal entry price) is more than the MAX point distance for that timeframe
Darvas Arrow Signal occurred and Min/Max and Entry Distance checks passed
Price is not above MA for BUY and below MA for SELL
If “Darvas Box crossed MA” true, Darvas box Top should be above MA and bottom below MA. This check failed.
Darvas Arrow Signal not towards ongoing NRTR Trend
‘x’ number of High Volume bars are not there in past 3 bars.
Heiken Trend is not aligned with current signal type BUY/SELL
Current Timeframe MA slope is not beyond threshold. For BUY, it should be above Threshold. For SELL it should be below -Threshold. Otherwise signal is skipped
Higher timeframe MA checked and for BUY HTF price is not above MA and for SELL price is not below MA. The HTF for which MA check failed will also be shown.
How To Trade:
Trade only trending market. When a good trend has started.
Default settings are best for M30 timeframe.
Smaller timeframe like M1 can have unpredictable trends. So be careful scalping on M1.
Don’t trade during ranging markets. As this might give losses. And make sure volatility is good.
Don’t trade when market is whipsawing and making sudden ups and downs:
You can see whipsaw motions by noticing sudden very long candle wicks. And price moving erratically and suddenly.
Also avoid choppy markets.
Be careful during news events as trends might change suddenly.
Strategy Tester in MT4 allows only a single timeframe and single pair for testing.
So, strategy tester isn’t reliable when using multi-timeframe options like for HTF MA.
v1.0 Base version
v1.1 Added option for showing negative Win Percentage, in case of 0 wins and only losses: