Jump to content
Medved Trader Forums
  • 0

Darvas Boxes



3 answers to this question

Recommended Posts

  • 0

Ok - I was sufficiently curious to research this and code the indicator, since it was a good exercise to test whether the indicator infrastructure is sufficiently versatile to deal with something like this. It is.


It will be in the next release Jerry puts out. Please check on it - there is some vagueness in various algorithms, especially on the point of how to start the box - whether the start has to be some kind of local maximum or it can be any point as long as it fits the rest of the algorithm.

Link to comment
Share on other sites

  • 0

I think the “Darvas Box” is essentially the “Flat Base” or “rectangle tops/bottoms.”

A general flat base definition is found here:




A popular suggested range of the dimensions can be found here:




If possible, I suggest allowing the user to define this indicator with a few key parameters held as input values--as this indicator is subjective to different user definitions.

So four key parameters for the user to set: the upward/downward trend %, the base depth %, the tolerance %, and the base length of so many bars.

To really make this cool, the upper or bottom depth lines could be linked with an automated email alert if price in real-time crosses one.

Thus, a simple first attempt at Darvas/flat bases I think would look like these charts:




Another thought which could this make this very powerful. A shorter duration of a “Darvas Box” is a “3 or 4+ Weeks Tight (3WT)” formation. They usually occur after a “Darvas Box” traditional price breakout. Again, if the user could define the major variables in the Darvas-like algorithm just like the above, a 3WT could be easily set as just another additional “Darvas Box” or whatever indicator the amazing Medveds decide to call this pattern indicator in the nifty tool.  :)


Notional Darvas Box Indicator Setting: >=20% uptrend, 15% base depth, 5% tolerance, base length between 25 to unlimited bars (days).  


Notional Darvas Box Indicator Setting (for a 3WT):  10% uptrend, 1% base depth, 0% tolerance, base length between 10 to 20 bars (days).

3WT Definition:





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...