how to code a pin bar

Created at 17 Aug 2018, 13:10
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JE

jelle2500

Joined 25.11.2017

how to code a pin bar
17 Aug 2018, 13:10


hello,

 

i would like to know how to code a pin bar

 

a candle has an open price, high and a low and a closing price..

this is what i'm looking for;

 

for a sell order: the high of the candle needs to be a number of pips/ percentage higher then the closing price (closing price still has to be higher then opening price).

for a buy order: the low needs to be a number of pips/ percentage lower then the closingprice ( closing price still has to be lower then opening price..

 

thanks,

 

Jelle


@jelle2500
Replies

jelle2500
17 Aug 2018, 16:33 ( Updated at: 21 Dec 2023, 09:20 )

 

just need a simple bot who takes buy after the bullish pin bar is closed ans sell after the bearish pin bar is closed.

 

but i need to have a parameter witch i can use to set the minimal percentage of tail in the candle 


@jelle2500