Auto draw measured move or fibx if a bar meets certain criteria

Login or Register

Please login or register in order to view and post in the Forum.

4 posts / 0 new
Last post
MDavid
Last seen: 1 week 5 days ago
Joined: 09/16/2019 - 07:09
Auto draw measured move or fibx if a bar meets certain criteria

I run PnF charts, I am looking to put a dot on my chart at 2x the height of any bar that meets certain criteria (such as delta, volume, or height of bar). If it is an up bar it should project the dot at H+(H-L) and if a down bar would be the opposite. Just looking for a dot that would maybe disappear after 10 bars or so. I assume this would be a CI and I know how to filter for my criteria, just not sure what to use to draw the points.

Thanks

0
MDavid
Last seen: 1 week 5 days ago
Joined: 09/16/2019 - 07:09
Small progress

So I've been playing around with this, I created a CI which does what I want but for some reason it is not filtering the bars by VB, I only want it to show above bars with VB>1000 but it showing above all of them, I verified the indicator is associated with my PnF bars and that they are pulling in volume at price data, I have VB in a separate pane so I can easily tell which bars should show the CI and which shouldn't. If I tweak the code at all they all disappear.

IF (VB > 1000) THEN ((HI-LO)+HI)

cpayne
Last seen: 1 year 7 months ago
Joined: 03/30/2009 - 00:00
PNF Dots

Take a look at what I've done here...   https://www.linnsoft.com/charts/mb-pnf-dots-es

I've setup the high dots as a custom indicator with this syntax...

(VB > C#1) * (CL > OP) *  (HI + (HI - LO))

So the last part (HI + (HI - LO)) is the price it prints at, and the 1st 2 are BOOLEAN conditions that will result in 1 or 0 based on true or false respectively.  So the dots will only show up if both conditiosn are true (VB > C#1) and (CL > OP).  I've added a buttton at top to control the C#1 value.  I've also setup those CIs to extend while naked.  That what you're looking for?

MDavid
Last seen: 1 week 5 days ago
Joined: 09/16/2019 - 07:09
Thank you very much Chad, I

Thank you very much Chad, I understand the coding when I see it, just need to learn some of the nuances of how RTL works. I was able to take what you made and adapt it to my specific goal.