Discussion of article "Identifying Trade Setups by Support, Resistance and Price Action"

 

New article Identifying Trade Setups by Support, Resistance and Price Action has been published:

This article shows how price action and the the monitoring of support and resistance levels can be used for well-timed market entry. It discusses a trading system that effectively combines the two for the determination of trade setups. Corresponding MQL4 code is explained that can be utilized in EAs that are based on these trading concepts.

This article covers a trading methodology that can be used in any FOREX, stock, or commodity market, as well as MQL4 code examples that can be used in an Expert Advisor that would be based on this methodology.

Price action and the determination of support and resistance levels are the key components of the system. Market entry is entirely based on those two components. Reference price levels will be explained along with effective ways of choosing them. The MQL4 examples include parameters for minimizing risk. This is done by keeping market exit references and stops relatively close to the entry prices.

There's an additional benefit of allowing higher volume trades, regardless of account size. Lastly, options for determining profit targets are discussed, accompanied by MQL4 code that enables profitable market exit during a variety of conditions.

1. Looking at Support and Resistance

If you look at any price chart, for any market, having any timeframe, two facts will become apparent that are based on characteristics which consistently appear. One of these facts is that the market price shown at any point in time doesn't stay the same for very long. Given enough time, the market price will have significantly changed. Any price shown on the chart can be used as a reference level.

Certain prices, however, act as better references than others. We'll get to that shortly. The second aforementioned fact is that any chart will have certain prices at which point the market trend will reverse. Often times, the market will repeatedly reach these price levels and change direction shortly after. These are the support and resistance levels that virtually any trader has heard of. Support is a price level below which the market will not drop. Resistance is a price above which the market won't go.

Also known as tops and bottoms, these price levels send the message that this is as far as the market will go (for now) and reversals will begin near these levels. Support and resistance levels are good prices to use as reference levels, as they signify prices at which a new trend can start with higher probability. Other prices, found approximately midway between two relative support and resistance levels, are also good reference levels. We'll refer to these as midpoints.

Any portion of a price chart can be marked off with horizontal lines at relevant support, resistance, and midpoint prices to be used as references. An example of this is shown in Fig. 1 below.

Fig.1. Support, resistance, and midpoint

Fig. 1. Support, resistance, and midpoint

Author: Michael Janus

 

Michael,

Thanks for your article. I am new to MetaTrader and MQL4 and appreciate your ability to explain things.

I want to use your EA as the basis for my own candle pattern algorithms, so I downloaded and installed it. To make sure it installed and works right I back tested it on a several day timespan in my demo account. I made no changes to the program or to your default Expert Properties. The test ran but did not open any positions. I tested a different EA and it worked fine, so I don't know why your program doesn't generate any orders in my demo account.

 

I recently downloaded and installed MetaTrader 4 when I opened a demo account at FXCM and am new to it. I understand there was some major upgrade to MQL4 and also that one might have to code OrderSend instructions differently depending on brokers. 

 I don't know if any of that info helps. Do you have any ideas as to why your program doesn't generate any orders in my demo account?

 Thanks for any help,

 Gary 

 
Great article, Thank you.
 
The indicator does not drawing on the chart.
 
gburg14:

Michael,

Thanks for your article. I am new to MetaTrader and MQL4 and appreciate your ability to explain things.

I want to use your EA as the basis for my own candle pattern algorithms, so I downloaded and installed it. To make sure it installed and works right I back tested it on a several day timespan in my demo account. I made no changes to the program or to your default Expert Properties. The test ran but did not open any positions. I tested a different EA and it worked fine, so I don't know why your program doesn't generate any orders in my demo account.

 

I recently downloaded and installed MetaTrader 4 when I opened a demo account at FXCM and am new to it. I understand there was some major upgrade to MQL4 and also that one might have to code OrderSend instructions differently depending on brokers. 

 I don't know if any of that info helps. Do you have any ideas as to why your program doesn't generate any orders in my demo account?

 Thanks for any help,

 Gary 

I have FXCM also and I believe that only their Experts and Indicators work on FXCM MT4.
 
I made an EA from your strategy and it works! 😁👍
Thank you!!!
 
Oliver Jaschok:

Hello Oliver..That is my intention too and I would have several questions.

1) On which TF did you put your EA ?

2) Do you have to manually insert the support and resistant level at the input section of your EA?

# Was thinking like I wanna insert two moving horizontal line as the support and resistant at a certain level (for example 30 candles back) on M1 TF, so that we did not have to manually insert the levels.

I am newbie to the strategies and not sure either it is reliable to make the support and resistant level move as the time goes by.

Thanks all...

 
masterdeco:

Hello Oliver..That is my intention too and I would have several questions.

1) On which TF did you put your EA ?

2) Do you have to manually insert the support and resistant level at the input section of your EA?

# Was thinking like I wanna insert two moving horizontal line as the support and resistant at a certain level (for example 30 candles back) on M1 TF, so that we did not have to manually insert the levels.

I am newbie to the strategies and not sure either it is reliable to make the support and resistant level move as the time goes by.

Thanks all...

Hi,

first tests are showing that H1 is the best TF. But it works on nearly all TFs. 
No not manually. It's an EA ;) The EA looks at H4 SandR and additionaly it looks that it is opening in direction of trend (for long it compares the last 20 candles low with the last 250 low). So its not opening against a bigger trend. 
Open a trade for long is: SandR and Trend are long and at least one of the 3 patterns.

I've forgotten: The EA looks at the moment a new candle is opened at the SandR in H4. Not all the time.
 
Oliver Jaschok:
Hi,

first tests are showing that H1 is the best TF. But it works on nearly all TFs. 
No not manually. It's an EA ;) The EA looks at H4 SandR and additionaly it looks that it is opening in direction of trend (for long it compares the last 20 candles low with the last 250 low). So its not opening against a bigger trend. 
Open a trade for long is: SandR and Trend are long and at least one of the 3 patterns.

I've forgotten: The EA looks at the moment a new candle is opened at the SandR in H4. Not all the time.
So it looks for the montly support and resistant level correct me if I'm wrong. And thank you author for sharing great informations. 

 
masterdeco:
So it looks for the montly support and resistant level correct me if I'm wrong. And thank you author for sharing great informations. 


Not monthly. H4

This is the code for SandR and looking for big trends how I solved it:

// SandR-Long 
   GoLongSandR = false;
   if(sqIsBarOpen == true) {
      if ((((Low[1 +1] < iLow(NULL, 240 , 1 +1)) && (Low[1] > iLow(NULL, 240 , 1))) 
      && (sqLowest("NULL", 0, TrendLowestPeriodShortterm , 1) > sqLowest("NULL", 0, TrendLowestPeriodLongterm , 1))))
      {
      // Action #1
       GoLongSandR = true;

      // Action #2
      // Log to journal
      Log("SandR-Long");
      }
   }
   //--------------------------------------
   // SandR-Short 
   GoShortSandR = false;
   if(sqIsBarOpen == true) {
      if ((((High[1 +1] > iHigh(NULL, 240 , 1 +1)) && (High[1] < iHigh(NULL, 240 , 1))) 
      && (sqHighest("NULL", 0, TrendHighestPeriodShortterm , 1) < sqHighest("NULL", 0, TrendHighestPeriodLongterm , 1))))
      {
      // Action #1
       GoShortSandR = true;

      // Action #2
      // Log to journal
      Log("SandR-Short");
      }
   }
 
Oliver Jaschok:

Hi Oliver: Can you post the Ea? It´s still working? Thanks. 

Reason: