1. Body of the candle should be above the 50% of the day's price range
2. Either the open or the close should be above the 30% of the day's price range
if both the above conditions are met then a arrow is produced with "B".
1. Body of the candle should be below the 50% of the day's price range
2. Either the open or the close should be below the 30% of the day's price range
if both the above conditions are met then a arrow is produced with "S".
Hope this indicator helps you identify trading entries.
alerts = (bearishpin or bullishpin)
Though user has to add the alert to the market they want it to be. Alert can be added by
Paste the two line code to the script of Pinbar (30-50) script, then add it to chart of the market of your preference
Then go to alert section on the right (second option from the top)
Then add to alert or create new alert
In condition dropdown you should see your market name, change that pinbar then in the next section automatically it should change to PinBar if not select it.
Then you can choose how you want the alert to be per your own choice with your own message etc. I have created this alert to give me one signal and not specific buy or sell signal. You can split the code to do that easily.
Hope this helps