Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Turning Point Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dhirenshah
Posted : Monday, March 11, 2019 10:20:51 AM
Registered User
Joined: 3/10/2012
Posts: 465

Bruce good monday morning 

some while back you had worked an idea on ZIGZAG line overlaid on price in custom pcf

But my question here is slightly different i want to use a Filter  in terms of percentage

So can you please make a custom PCF line that can be overlayed on price when Peak to trough reverses direction only after tickers direction moves atleast 5% away from its previous peak or trough

and another custom pcf overlay when peak to trough reverses direction only after tickers directions moves atleast 13% away from its previous peak or trough

thanks

Bruce_L
Posted : Monday, March 11, 2019 3:27:51 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

So far the lack of recursive functions has made this request non-trivial. I may still be able to do it, but it is going to be complicated if I can do so (unless I have some sort of eureka moment).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Monday, March 11, 2019 3:37:36 PM
Registered User
Joined: 3/10/2012
Posts: 465

hahaha :) Bruce you have worked on several Eureka moments, so no worries take your time will check closer to end of week , 

Meanwhile one more non related question  

how to modify this below pcf to be true using SGN " function or some other idea to get two consecutive back to back bars  or within two bars of each other in last 20 bars 

IIF(H / ABS(ABS(C - O) < .45 * ABS(H - L) AND H > H - .45 * ABS(H - L) AND C < H - .45 * ABS(H - L) AND O < H - .45 * ABS(H - L)) 
,H, 1 / 0)
 
and same for this formula
 
IIF(L / ABS(ABS(C - O) < .45 * ABS(H - L) AND L < L + .45 * ABS(H - L) AND C > L + .45 * ABS(H - L) AND O > L + .45 * ABS(H - L))
,H, 1 / 0)

 

Bruce_L
Posted : Monday, March 11, 2019 4:49:43 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I am not quite sure what you want. Do you just want to return true when that formula at least twice in a span of two bars at least one in a span of twenty bars?

CountTrue(CountTrue(ABS(C - O) < .45 * ABS(H - L) AND H > H - .45 * ABS(H - L) AND C < H - .45 * ABS(H - L) AND O < H - .45 * ABS(H - L), 3) >= 2, 20) > 0

And:

CountTrue(CountTrue(ABS(C - O) < .45 * ABS(H - L) AND L < L + .45 * ABS(H - L) AND C > L + .45 * ABS(H - L) AND O > L + .45 * ABS(H - L), 3) >= 2, 20) > 0

Or are you looking for something else?



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Monday, March 11, 2019 5:59:46 PM
Registered User
Joined: 3/10/2012
Posts: 465

Bruce don't know how to answer your question in a best way but this is the way i see on chart ,, attached is the link for my first pcf in red highlighted bars where the pcf shows two bars consecutively and or within two bars of each other

https://www.dhirenshah.com/320-2/

same for the my second pcf in green highlighted bars where the pcf shows two bars consecutively and or within two bars of each other 

https://www.dhirenshah.com/323-2/

 

So i want to scan or sort the list when the cluster of red or green happens in last 20 bars 

thanks

Bruce_L
Posted : Tuesday, March 12, 2019 10:29:41 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I have made an alteration to the formulas in my original response (I had copied more of your original formulas than I should have into my formulas). Please try the newer versions.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, March 12, 2019 10:50:25 AM
Registered User
Joined: 3/10/2012
Posts: 465

No Bruce count true in last 20 bars the pcf seems to attract almost continuosly. so what should be corrected if we just want spike when 2 bars back to back next to each other happens lets forget about within 20 bars

Like for example this below pcf i use when price xup 8ema high 2 bars in a row 

SGN(C - XAVGH8) = SGN(C1 - XAVGH8.1) AND SGN(C1 - XAVGH8.1) > SGN(C2 - XAVGH8.2)

so can the same be done using SGN function for pcf I Posted : 11 March 2019 15:37:36

Bruce_L
Posted : Tuesday, March 12, 2019 11:01:08 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Really, all you need to do is get rid of the CountTrue( ,20) > 0 portion of each formula to create the conditions.

CountTrue(ABS(C - O) < .45 * ABS(H - L) AND H > H - .45 * ABS(H - L) AND C < H - .45 * ABS(H - L) AND O < H - .45 * ABS(H - L), 3) >= 2

And:

CountTrue(ABS(C - O) < .45 * ABS(H - L) AND L < L + .45 * ABS(H - L) AND C > L + .45 * ABS(H - L) AND O > L + .45 * ABS(H - L), 3) >= 2



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Tuesday, March 12, 2019 11:10:18 AM
Registered User
Joined: 3/10/2012
Posts: 465

Yup thats all I needed.... thankyou 

Now will wait for the eureka moment of my other question on zigzag :)

Cheers

Bruce_L
Posted : Friday, March 15, 2019 9:51:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Just an update. No Eureka moment so far.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dhirenshah
Posted : Friday, March 15, 2019 2:09:23 PM
Registered User
Joined: 3/10/2012
Posts: 465

Noted Bruce ... take your time may be weekend rest will help :)

dhirenshah
Posted : Thursday, March 21, 2019 3:30:11 PM
Registered User
Joined: 3/10/2012
Posts: 465

Bruce any luck with turning point query ?/ my top first question in this post 

I was thinking what if you improvise on clear bar theory using this below formula that you had computed in past and if we can put percentages to match peaks and troughs in them 

IIF(L > H1, H1, IIF(H < L1, L1, IIF(L > MINH2.1, H2, IIF(H < MAXL2.1, L2, IIF(L > MINH3.1, H3, IIF(H < MAXL3.1, L3, IIF(L > MINH4.1, H4, IIF(H < MAXL4.1, L4, IIF(L > MINH5.1, H5, IIF(H < MAXL5.1, L5, IIF(L > MINH6.1, H6, IIF(H < MAXL6.1, L6, IIF(L > MINH7.1, H7, IIF(H < MAXL7.1, L7, IIF(L > MINH8.1, H8, IIF(H < MAXL8.1, L8, IIF(L > MINH9.1, H9, IIF(H < MAXL9.1, L9, IIF(L > MINH10.1, H10, IIF(H < MAXL10.1, L10, IIF(L > MINH11.1, H11, IIF(H < MAXL11.1, L11, IIF(L > MINH12.1, H12, IIF(H < MAXL12.1, L12, IIF(L > MINH13.1, H13, IIF(H < MAXL13.1, L13, IIF(L > MINH14.1, H14, IIF(H < MAXL14.1, L14, IIF(L > MINH15.1, H15, IIF(H < MAXL15.1, L15, IIF(L > MINH16.1, H16, IIF(H < MAXL16.1, L16, IIF(L > MINH17.1, H17, IIF(H < MAXL17.1, L17, IIF(L > MINH18.1, H18, IIF(H < MAXL18.1, L18, IIF(L > MINH19.1, H19, IIF(H < MAXL19.1, L19, IIF(L > MINH20.1, H20, IIF(H < MAXL20.1, L20, IIF(L > MINH21.1, H21, IIF(H < MAXL21.1, L21, IIF(L > MINH22.1, H22, IIF(H < MAXL22.1, L22, IIF(L > MINH23.1, H23, IIF(H < MAXL23.1, L23, IIF(L > MINH24.1, H24, IIF(H < MAXL24.1, L24, IIF(L > MINH25.1, H25, IIF(H < MAXL25.1, L25, IIF(L > MINH26.1, H26, IIF(H < MAXL26.1, L26, IIF(L > MINH27.1, H27, IIF(H < MAXL27.1, L27, IIF(L > MINH28.1, H28, IIF(H < MAXL28.1, L28, IIF(L > MINH29.1, H29, IIF(H < MAXL29.1, L29, IIF(L > MINH30.1, H30, IIF(H < MAXL30.1, L30, IIF(L > MINH31.1, H31, IIF(H < MAXL31.1, L31, IIF(L > MINH32.1, H32, IIF(H < MAXL32.1, L32, IIF(L > MINH33.1, H33, IIF(H < MAXL33.1, L33, IIF(L > MINH34.1, H34, IIF(H < MAXL34.1, L34, IIF(L > MINH35.1, H35, IIF(H < MAXL35.1, L35, IIF(L > MINH36.1, H36, IIF(H < MAXL36.1, L36, IIF(L > MINH37.1, H37, IIF(H < MAXL37.1, L37, IIF(L > MINH38.1, H38, IIF(H < MAXL38.1, L38, IIF(L > MINH39.1, H39, IIF(H < MAXL39.1, L39, IIF(L > MINH40.1, H40, IIF(H < MAXL40.1, L40, IIF(L > MINH41.1, H41, IIF(H < MAXL41.1, L41, IIF(L > MINH42.1, H42, IIF(H < MAXL42.1, L42, IIF(L > MINH43.1, H43, IIF(H < MAXL43.1, L43, IIF(L > MINH44.1, H44, IIF(H < MAXL44.1, L44, IIF(L > MINH45.1, H45, IIF(H < MAXL45.1, L45, IIF(L > MINH46.1, H46, IIF(H < MAXL46.1, L46, IIF(L > MINH47.1, H47, IIF(H < MAXL47.1, L47, IIF(L > MINH48.1, H48, IIF(H < MAXL48.1, L48, IIF(L > MINH49.1, H49, IIF(H < MAXL49.1, L49, IIF(L > MINH50.1, H50, IIF(H < MAXL50.1, L50, 1 / 0))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
 

 

 

Bruce_L
Posted : Thursday, March 21, 2019 4:10:37 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

That formula is really marking continuations, not pivots.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.