Dukascopy
 
 
Wiki JStore Search Login

How do you define a Pin Bar?
 Post subject: How do you define a Pin Bar? Post rating: 0   New post Posted: Thu 27 Aug, 2015, 17:15 
User avatar

User rating: 0
Joined: Sat 22 Aug, 2015, 15:37
Posts: 1
Location: GermanyGermany
Hallo staff :)
Please let me first say a BIG THANK YOU for this wonderful tool that is Visual Jforex.
I am completely new to strategy programming, and in a couple of days I was already able to create something workable : AMAZING!

Now back to work :))
Do you have already a "template" to define classical candlestick patterns (e.g. pin bars, engulfing bars and so on)?

I am trying to create a simple strategy to trade pin bars: I would short a pin that is above the 20 Ema, at the break of the low
I would buy the break of the high of a pin bar in the opposite position.

I want the pin range to be at least equal to the ATR 15
I want the pin body to be in the extreme 33% of the range

..I do not know how to define the position of the body in the candle range.
Can anybody please help?
Thank you very much!

Maxx


 
 Post subject: Re: How do you define a Pin Bar? Post rating: 0   New post Posted: Wed 14 Oct, 2015, 08:40 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi there,

it's good to hear that ! Thanks !

It's all about the way you define your pin bars, let's take an example of a bullish pin bar (10mn):
- First, the system needs to detect the bullish candle which is defined as open price < close price
- lets say the nose of the pin bar should be one third of the body --> (Open-Close)/3 >= (high - Close)
- and the tail is 3 times longer than the body

Attached a simplified example, you can build the bullish pin bars according to the pattern and include your indicators


Image


Cheers !


Attachments:
PinBar.vfs [33.13 KiB]
Downloaded 145 times
Pin1.JPG [77.71 KiB]
Downloaded 557 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
Last bumped by amine_chourou on Wed 14 Oct, 2015, 08:40.
 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com