# Welcome to the  Zone Trading Analysis  Framework

## Introduction

The code that is used to develop these types of algorithms can be quite complicated, especially for a not-so experienced EasyLanguage programmer.  For this reason, I have created this framework. The code is fully explained at the end of the manual and a video is included on using the framework to reflect your own observations on the chart and in code.  The framework is not only a tool for developing day trade systems, but the logic and coding can take you a long way to becoming a much better EasyLanguage programmer.

## Snippet of the Code that Initiated the Long Trade Above

if dayOpenZone = “z2” and
last4Lev = “z2topca,z2topcb,z3topcb,z3topca,” and
begin
end;

### Code Explanation

The variable dayOpenZone is used to keep track of the first tick of the day.  Each boundary crossing (transition from one Zone to another) is represented by an 8 character string.  So when the market moves from Zone 2 to Zone 1 a string is created – in tis case the string would be “z2topca,” In other words, the market crossed above the top on Zone 2 and therefore landed in Zone 1.  Once this happens the large string that records the daily boundary crossings only contains, “z2topca,”  If next level crossing or penetration is back into Zone 2, then the string would contain, “z2topca,z2topcb,”  Here the market crossed below the top of Zone 2 and landed back into Zone 2.  We want to buy after the market pokes its head into Zone 1 and then pulls back to Zone 3 and then pushes back again into Zone 2.  The initial break out failed and the weak handed longs are gone, but the bulls are still in control, and want to push the market higher.  Will this push, pull, push payoff?  Who knows, but you can easily test it.  The last 2 strings must be,”z3topcb,z3topca,”  The market moved into Zone 3 and back into Zone 2 – is this the beginning of a new rally?  This line of code:

last4Lev = “z2topca,z2topcb,z3topcb,z3topca,”

provides the exact information the computer needs to take actions.  The variable last4Lev contains the path the market has taken up to that point in time.  As you can see this particular sequence paid off, but keep in mind this example was “cherry picked” for illustration.

### Lean EasyLanguage as You Test Your Ideas

Concepts such as strings, concatenation, arrays and other slightly advanced techniques were used in the development of the frame work.  Since the code is fully disclosed, you can easily see how all this concepts are used and tied together.

Before you decide if this framework is right for you, take a look a these videos: