• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:32am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:32am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

5/13/50 with pinbars 5 replies

Price action topics on pinbars? 2 replies

PinBar Trading 7 replies

Pinbar's live trading journal 30 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 155
Attachments: Pinbar trader EA - Trading pinbars off weekly S&R levels
Exit Attachments

Pinbar trader EA - Trading pinbars off weekly S&R levels

  • Last Post
  •  
  • Page 1 23456 22
  • Page 1 234 22
  •  
  • Post #1
  • Quote
  • First Post: Edited Jan 28, 2018 11:39am Jan 27, 2018 4:15am | Edited Jan 28, 2018 11:39am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts

=== Pinbar Trader EA ===


Hi everyone, welcome !
I would like to present my latest EA.
It implements a very basic, but very effective strategy. trading pinbars from weekly S&R levels

Strategy:
- we wait for a pinbar to appear which rejects a weekly support & resistance level
- When the candle with the pinbar is closed we open a new buy/sell trade on the next candle

The Pinbar trader EA
The pinbar trader EA implements the strategy and has lots of extra features:

  1. it scans multiple currencies. So load the EA on 1 chart and it will scan all major currencies by default (you can change which ones in the settings)
  2. it can send you alerts when a pinbar is detected on a weekly S&R level
  3. it can do auto trading, although please run this on demo first before you decide to go live with this
  4. You can choose between a trailing stops or risk:reward exit strategy
  5. You can choose if it should use a fixed lot sizes, a fixed amount of $, or a risk % of your account balance
  6. It has a news filter implemented to skip trading during news events

Installation:
Download the zip file and unzip it somewhere

  1. copy the pinbartrader.tpl to your MT4 templates folder
  2. copy the SupportResistance.ex4 to your MT4 indicators folder
  3. copy the PinbarTrader.ex4 to your MT4 experts folder
  4. Now start MT4, enable auto trading and DLL imports
  5. put the EA on any chart on the Daily (D1) timeframe !

and voila..
By default auto-trading and alerts are turned off. So enable them if you want to use them

Source code:
Want to get involved ? you can find all source code for this (and my other ea's & indicators) on GitHub
https://github.com/erwin-beckers/SimpleTrendReversalEA

Backtesting:
Attached the results of a 2-year backtest on EURUSD

Idea's for the next version/future:
- add a distributed S&R filter. Instead of trying to calculate the correct S&R levels, simply download them from a central server.
- send alerts for mean reversal setups (and perhaps auto trade those)
- open with-the-trend trades on pinbars for pinbars on/to the mean



General usage:
The EA will show you a table with the pairs which have a pinbar or are at a weekly S&R resistance level.
Pairs which don't have any pinbar and are not at a weekly S&R level are filtered out and are not shown.
In short.. the EA will only show pairs which looks interesting
Off course when time goes by new pairs will be shown or removed automatically.

The color of a pair indicates if we are looking to buy (green) or sell (red)
When all signals are valid the last column will contain the word buy or sell and when this happens the EA will send you an alert and/or open a trade.
If you want to look at the chart , then simply click on the name of the currency pair in the 1st column (e.g. EURUSD in the screenshot)
This will open a new chart with the S&R indicator attached so you can take a quick look

When auto-trading is enabled the EA will also show you a list of all open trades and a trade statistics panel where you can keep track on its performance

Manual Trading
The EA can be used as an aid for manual trading or it can do automated trading.

For manual trading just set sendAlerts=true (and/or sendEmails = true)
The EA will then send an alert (or email) when it detects a valid buy/sell signal.
Alerts can even be send to your phone!
See here on how to set this up : http://www.cmapllc.com/how-to-set-up...nd-iphone.html
When you receive an alert you can look at the chart and if you like the signal or not and perhaps open a trade manually

Automated Trading
For automated trading just set allowTrading=true and choose your lotsize and exit strategy
The EA will open trades automatically when it detects valid buy/sell signals and manage these trades for you.
When auto trading you must tell the EA how much money it is allowed to use for each trade
Here you have 3 options:

MoneyManagement:

Fixed Lot Size / trade

Set MoneyManagent = UseFixedLotSize and fill in your lotsize under FixedLotSize

Each trade opened by the EA will use this fixed lot size


Fixed Amount of $ / trade

Set MoneyManagement = UseFixedAmount and fill in the amount of under FixedAmount.

Note that this is your account currency. So if your account is in EUR then FixedAmount is also in EUR

Each trade opened by the EA will use a fixed amount of money.

When the SL is bigger it must use a smaller lotsize and when the SL is smaller it can use a higher lotsize.

So it will always risk the same amount of money on each and every trade


Percentage of Account Balance / trade

Set MoneyManagement = UsePercentageOfAccountBalance and fill in the percentage (1-100) under RiskPercentage.

Each trade opened by the EA will risk a fixed % of your total balance

So if you have a $1000 account and Riskpercentage = 5 it will risk 5% of $1000 = $50,- / trade


Exit Strategies
Here you can choose between a trailing stop or a fixed Risk/Reward ratio

Trailing stop:

Set trailingmethod=UseTrailingStops and fill in the OrderHiddenSL, OrderTSx , OrderTSxTrigger levels

It uses a hidden / virtual stoploss.

This allows us to put the stop loss anywhere without the broker knowing and without any broker restrictions

So.. When the EA places a new order then the initial hidden/virtual stoploss is placed at the S&R level

then when trade gets into profit we trail the hidden / virtual stoploss like this:

when profit reaches Order TS1 Trigger pips, the virtual stoploss is moved to Order TS1 pips

when profit reaches Order TS2 Trigger pips, the virtual stoploss is moved to Order TS2 pips

when profit reaches Order TS3 Trigger pips, the virtual stoploss is moved to Order TS3 pips

when profit reaches Order TS4 Trigger pips, the virtual stoploss is moved to Order TS4 pips

when profit goes above Order TS4 Trigger pips then the rest gets trailed with a Trailing Step


Risk/Reward ratio

Set trailing method = UseRiskRewardRations and set TakeProfit to your R:R

Attached Images (click to enlarge)
Click to Enlarge

Name: Screen Shot 2018-01-27 at 10.25.20.png
Size: 115 KB Click to Enlarge

Name: Screen Shot 2018-01-27 at 10.07.10.png
Size: 115 KB Click to Enlarge

Name: Screen Shot 2018-01-27 at 10.07.24.png
Size: 109 KB Click to Enlarge

Name: pinbar.jpg
Size: 189 KB
Click to Enlarge

Name: backtest.jpg
Size: 265 KB
Attached File
File Type: zip pinbar trader ea v1.20.zip   243 KB | 7 downloads | Uploaded Jan 28, 2018 11:39am
  • Post #2
  • Quote
  • Jan 27, 2018 7:25am Jan 27, 2018 7:25am
  •  Sladen23
  • | Joined Nov 2014 | Status: Junior Member | 2 Posts
ebeckers,
thanks for sharing your idea as usual.Where do i find and

  1. copy the SupportResistance.ex4 to your MT4 indicators folder
  2. copy the PinbarTrader.ex4 to your MT4 experts folder

 
 
  • Post #3
  • Quote
  • Jan 27, 2018 7:52am Jan 27, 2018 7:52am
  •  AndrewBa-
  • | Commercial Member | Joined Nov 2016 | 422 Posts
Seems very promising! Subscribed.
Check page 1 for all infos...
 
2
  • Post #4
  • Quote
  • Jan 27, 2018 7:55am Jan 27, 2018 7:55am
  •  happytrade38
  • | Joined Sep 2014 | Status: Member | 508 Posts
subscribed.
 
1
  • Post #5
  • Quote
  • Jan 27, 2018 7:58am Jan 27, 2018 7:58am
  •  PrinceJ58
  • Joined Oct 2015 | Status: Focused on the Results | 1,470 Posts
Quoting ebeckers
Disliked
=== Pinbar Trader EA === Hi everyone, welcome ! I would like to present my latest EA. It implements a very basic, but very effective strategy. trading pinbars from weekly S&R levels Strategy: - we wait for a pinbar to appear which rejects a weekly support & resistance level - When the candle with the pinbar is closed we open a new buy/sell trade on the next candle The Pinbar trader EA The pinbar trader EA implements the strategy and has lots of extra features: it scans multiple currencies. So load the EA on 1 chart and it will scan all major currencies...
Ignored

Hi, Thanks for sharing your work here, i have similar liking of this candle pattern based trading method. I have done a my share of research on it as well. Using the weekly support and resistance is a good way to filter these signals indeed. For others they also utilise Pivots, Some use Fibs and others use Value charts. Keeping it simple is great and i will surely be testing your hard work. I look forward to further development if it is required. I also look to assist where i can.

I like your trade dashboard and trade info panel. I will also be looking for those two trades that the system has alerted and traded.
My only question is the method of entry:

  1. Is it an aggressive entry, which means you enter as soon as the bar closes? Market order.
  2. Do you wait for retrace? Limit order
  3. Break of the nose of the pinbar? Stop order

R:R "Percentage Focus"
 
 
  • Post #6
  • Quote
  • Jan 27, 2018 7:59am Jan 27, 2018 7:59am
  •  jenbols
  • Joined Nov 2016 | Status: Getting there, but not just yet | 2,430 Posts
Quoting ebeckers
Disliked
=== Pinbar Trader EA === Hi everyone, welcome ! I would like to present my latest EA. It implements a very basic, but very effective strategy. trading pinbars from weekly S&R levels Strategy: - we wait for a pinbar {image} {image} {image} {image} {image} {file}
Ignored
Hi Ebeckers, many thanx to offer this for the FF community, looks like a simple system and effective for price action ,,
Pls could you clarify some points ?
-I use normally 1000 bar history and default Ea is 3000 bars, is it okay to keep it still at 1000
or it will make conflict somehow with the Ea ?
-Also some of the Pinbars patterns might not display the same way , and i think it is best to use the New York close
i find almost identical patterns with brokers using +2 gmt, is that what you have used too ?
- For now this works on Daily chart only and perhaps do you have any plan to make this work on H4 too?
There are quite a few reliable PinBars on that type of TF too
-Also is it possible temporarily hyde the box showing data on the chart ?
-The Entry is it straight away after PIn Bar forms or does the Ea looks at the next candle for reference ?
I have switched to price action and normally i am entering long tailed pin bars or med sized ones from half 50% of it _
If you could confirm ...
Thank you and best of luck _
Attached Image (click to enlarge)
Click to Enlarge

Name: pin bar .jpg
Size: 328 KB
The arriving better than the arrival, the journey has just started
 
2
  • Post #7
  • Quote
  • Jan 27, 2018 8:00am Jan 27, 2018 8:00am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Quoting PrinceJ58
Disliked
{quote} Hi, Thanks for sharing your work here, i have similar liking of this candle pattern based trading method. I have done a my share of research on it as well. Using the weekly support and resistance is a good way to filter these signals indeed. For others they also utilise Pivots, Some use Fibs and others use Value charts. Keeping it simple is great and i will surely be testing your hard work. I look forward to further development if it is required. I also look to assist where i can. I like your trade dashboard and trade info panel. I will...
Ignored
Thx.. yeah at the moment the EA simply opens a trader right after the pinbar candle closes.
I'll be playing with 50% retracements next week to see if this makes things even better !
 
1
  • Post #8
  • Quote
  • Jan 27, 2018 8:03am Jan 27, 2018 8:03am
  •  ebeckers
  • Joined Nov 2017 | Status: Member | 376 Posts
Quoting jenbols
Disliked
{quote} Hi Ebeckers, many thanx to offer this for the FF community, looks like a simple system and effective for price action ,, Pls could you clarify some points ? -I use normally 1000 bar history and default Ea is 3000 bars, is it okay to keep it still at 1000 or it will make conflict somehow with the Ea ? -Also some of the Pinbars patterns might not display the same way , and i think it is best to use the New York close i find almost identical patterns with brokers using +2 gmt, is that what you have used too ? - For now this works on Daily chart...
Ignored
> I use normally 1000 bar history and default Ea is 3000 bars, is it okay to keep it still at 1000
Fine with me ;-) When there is less then 3000 bars the EA will simply use less bars
So 3000 is the max it will use, if there are only 1000. it will use 1000

>Also some of the Pinbars patterns might not display the same way , and i think it is best to use the New York close
I agree, NY close brokers are the best, but it depends on which broker you use

> i find almost identical patterns with brokers using +2 gmt, is that what you have used too ?
I do al my trading on a broker which has NY closing charts. Dunno about other brokers

> For now this works on Daily chart only and perhaps do you have any plan to make this work on ha4 too?
Yes

> Also is it possible temporarily hide the box showing data on the chart ?
No, it appears when you have auto trading enabled.
But the source code is open to all, so you could change it ;-)

Erwin
 
5
  • Post #9
  • Quote
  • Jan 27, 2018 8:10am Jan 27, 2018 8:10am
  •  jenbols
  • Joined Nov 2016 | Status: Getting there, but not just yet | 2,430 Posts
Quoting ebeckers
Disliked
{quote} > I use normally 1000 bar history and default Ea is 3000 bars, is it okay to keep it still at 1000 Fine with me ;-) >Also some of the Pinbars patterns might not display the same way , and i think it is best to use the New York close I agree, NY close brokers are the best, but it depends on which broker you use > i find almost identical patterns with brokers using +2 gmt, is that what you have used too ? I do al my trading on a broker which has NY closing charts. Dunno about other brokers > For now this works on Daily chart only and perhaps...
Ignored
Aww, Lol you faster than me
Okay thanx for the answers, not sure if i have seen this before
but i like what i see now and it is promising_
What i am careful of when playing Pin bars is to play them only of course when there is a clear trend
visible on a Daily Chart to avoid some fake signal.
The addition of the Risk Reward Ratio is a good feature Btw,,,
So we wait for Monday then _ Nice work man !
The arriving better than the arrival, the journey has just started
 
4
  • Post #10
  • Quote
  • Jan 27, 2018 8:14am Jan 27, 2018 8:14am
  •  PrinceJ58
  • Joined Oct 2015 | Status: Focused on the Results | 1,470 Posts
Quoting ebeckers
Disliked
{quote} > I use normally 1000 bar history and default Ea is 3000 bars, is it okay to keep it still at 1000 Fine with me ;-) When there is less then 3000 bars the EA will simply use less bars So 3000 is the max it will use, if there are only 1000. it will use 1000 >Also some of the Pinbars patterns might not display the same way , and i think it is best to use the New York close I agree, NY close brokers are the best, but it depends on which broker you use > i find almost identical patterns with brokers using +2 gmt, is that what you have used too...
Ignored

Yes i agree even the colours sometimes are opposite versus the direction the signals are indicating.
Attached Image (click to enlarge)
Click to Enlarge

Name: pin-bars-in-trend.png
Size: 27 KB
Attached Images
R:R "Percentage Focus"
 
3
  • Post #11
  • Quote
  • Jan 27, 2018 8:19am Jan 27, 2018 8:19am
  •  johnsmith2nd
  • Joined Jan 2017 | Status: Member | 528 Posts
Looks interesting! Subbed and keen to follow!
1
1
  • Post #12
  • Quote
  • Jan 27, 2018 8:59am Jan 27, 2018 8:59am
  •  Joseph95
  • Joined Jan 2017 | Status: Member | 379 Posts
This is the kind of stuff i was searching for a lot of time for improve my trading and making it stress-less. Thank you and subscribed :-)
 
2
  • Post #13
  • Quote
  • Jan 27, 2018 9:26am Jan 27, 2018 9:26am
  •  HumbleLearne
  • Joined Feb 2016 | Status: Member | 303 Posts
Amazing stuff guru Subscribed
 
1
  • Post #14
  • Quote
  • Jan 27, 2018 9:28am Jan 27, 2018 9:28am
  •  mrdfx
  • Joined May 2017 | Status: Member | 3,646 Posts
Nice one ebeckers, this looks good! I'm in!
Truth is like poetry. And most people f*cking hate poetry.
 
3
  • Post #15
  • Quote
  • Jan 27, 2018 10:06am Jan 27, 2018 10:06am
  •  T4Trade
  • Joined Sep 2017 | Status: Trend Following,Price Action,Grid | 1,950 Posts
Thank you for creating this thread,Subscribed and All the best!
 
1
  • Post #16
  • Quote
  • Jan 27, 2018 10:14am Jan 27, 2018 10:14am
  •  renkotop
  • Joined Nov 2015 | Status: Member | 908 Posts
@ebeckers:thank you for this ea, subscribed, renkotop
 
1
  • Post #17
  • Quote
  • Jan 27, 2018 11:44am Jan 27, 2018 11:44am
  •  dennisd
  • | Joined Mar 2012 | Status: Junior Member | 4 Posts
Ebeckers I'm subscribed. Your coding skills and generosity is truely amazing!
Thanks
 
 
  • Post #18
  • Quote
  • Jan 27, 2018 12:33pm Jan 27, 2018 12:33pm
  •  billbss
  • Joined Apr 2006 | Status: Member | 4,301 Posts
I didn't see the template in your zip file.
Thanks
 
1
  • Post #19
  • Quote
  • Jan 27, 2018 12:54pm Jan 27, 2018 12:54pm
  •  9jatrader
  • Joined Mar 2016 | Status: Member | 6,143 Posts
Quoting ebeckers
Disliked
=== Pinbar Trader EA === Hi everyone, welcome ! I would like to present my latest EA. It implements a very basic, but very effective strategy. trading pinbars from weekly S&R levels Strategy: - we wait for a pinbar to appear which rejects a weekly support & resistance level - When the candle with the pinbar is closed we open a new buy/sell trade on the next candle The Pinbar trader EA The pinbar trader EA implements the strategy and has lots of extra features: it scans multiple currencies. So load the EA on 1 chart and it will scan all major currencies...
Ignored
Great thread. Pin Bar is such a great candlestick, especially when formed in ranging market. Almost similar to Hammer. They fly the pair to a great height.
Make all possible mistakes in Demo and rain in pips in live account
9jatrader All Time Return: 375.6%
 
1
  • Post #20
  • Quote
  • Jan 27, 2018 12:56pm Jan 27, 2018 12:56pm
  •  bazze
  • | Joined Nov 2013 | Status: Member | 1,127 Posts
Thank you for sharing, ebeckers...Up and ready for next week...
 
1
  • Trading Systems
  • /
  • Pinbar trader EA - Trading pinbars off weekly S&R levels
  • Reply to Thread
    • Page 1 23456 22
    • Page 1 234 22
0 traders viewing now
  • More
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022