EA Lab Tutorial – Pin Bar EA

EA Lab Tutorial – Building a Pin Bar EA

In our previous EA Lab tutorial, we taught you how to build your own Pin Bar EA by understanding the code.

Now, we are going to build a Pin Bar EA without coding – Using EA Lab.

EA Lab is available free if you have an IC Markets account, and trade 20 lots per month.

  • More info at the bottom of this article

Step 1: Define a Pin Bar

Bullish Pin Bar

  1. Bar Close > Bar Open
  2. Bar Body < 25% of Bar range (high – low of bar)
  3. Bar Open > (Bar low + 75% of the total bar range)

Bullish Pin Bar (simple explanation)

  1. Bar close needs to be greater than Bar open (for bullish pin bar)
  2. Bar body needs to be less than 25% of Bar range (A pin bar has small bodies)
  3. Bar open needs to be in the top 25% of the of the Bar range.

EA Lab Tutorial

Step 2:

Build the first condition, ‘Bar Close > Bar Open’

  1. Take IF block, drag it as shown in the picture, to Green EA ‘Bar’ connector
    • ‘Bar’ means start on the ‘close’ of each bar
    • ‘Tick’ means start on each tick, which we don’t want, as we only know a pin bar forms at the close
  2. Take ‘Bar’ block, drag it as shown in the picture
    • Change the open and close conditions to: Bar Close > Bar Open
    • Remember to change shift to 1
    • Shift 1 refers to the bar that just closed. Shift 0 means current un-closed bar
EA Lab Tutorial

#1

EA Lab Tutorial

#1

EA Lab Tutorial

#2

Step 3:

Build the second condition: Bar Body < 25% of Bar range

EA Lab Tutorial

Step 4:

Build the second condition: Bar Open > (Bar low + 75% of the total bar range)

EA Lab Tutorial

Remember, you can right click and duplicate each block to quicken the process.

Step 5: Tell the EA to buy when Pin Bar condition is met

EA Lab Tutorial

Now, you have successfully created your own Pin Bar EA without coding!

Let’s download it into our PC.

EA Lab Tutorial

Now let’s watch it trade.

EA Lab Tutorial

I’m glad you have taken the first steps into coding your own EA, without coding knowledge!

Download the Pin Bar EA

Remember to paste the libraries file into your libraries as well.


Getting EA Lab for free

EA Lab is available free if you have an IC Markets account, and trade 20 lots per month. See how here.

You will also get a free VPS to host your EAs 24/7 when you trade 15 lots or more per month.

If you need an IC Markets live account to get access to EA Lab, you can open one through us here

  • Comes with institutional commission rate of $5.50 $7 for TrueECN accounts, or 8% commission reduction on cTrader
  • Apply our partner ID 1441 when opening an account to automatically receive the institutional rate
  • More info here