Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
hhphoto2006
Posted : Tuesday, February 28, 2017 8:38:43 PM
Registered User
Joined: 10/18/2008
Posts: 260

Hello Bruce,

Could you help me with the following formula;

-Current bar close is 45% or less than the current bar high.

Hopefully that make sense.

 

Thanks

Bruce_L
Posted : Wednesday, March 1, 2017 9:33:08 AM


Worden Trainer

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

The two main interpretations which come to mind are that the current price is 45% lower than the high of the current bar, but this seems highly unlikely unless the time frame is set to something fairly long like yearly or we are dealing with penny stocks.

C <= .55 * H

The other interpretation seems more likely and that is that the current price is at least 45% of the way down the current candle.

STOC1 <= 55 AND H > L



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hhphoto2006
Posted : Wednesday, March 1, 2017 1:01:24 PM
Registered User
Joined: 10/18/2008
Posts: 260

Hi   Bruce

Just checked the scan, the second interpretation works.

Thanks

hhphoto2006
Posted : Wednesday, March 1, 2017 1:18:51 PM
Registered User
Joined: 10/18/2008
Posts: 260

Bruce, 

One more thing what is STOC1 mean I just want to invert the formula?

Thanks

Bruce_L
Posted : Wednesday, March 1, 2017 1:29:05 PM


Worden Trainer

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

It is a 1 period stochastic. It returns where price is relative to the high and low over the period with 100 being at the top, 50 being in the middle and 0 being at the bottom.

Because the period is 1, it is just looking at the current bar.

Inverting this would be:

STOC1 >= 45 AND H > L

The H > L is needed because STOC1 = 50 when H = L.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hhphoto2006
Posted : Wednesday, March 1, 2017 2:08:26 PM
Registered User
Joined: 10/18/2008
Posts: 260

Great ! thank you

hhphoto2006
Posted : Wednesday, March 1, 2017 2:18:37 PM
Registered User
Joined: 10/18/2008
Posts: 260

This isthe last question

Is it possible to add a condition to the same formula requiring the open of the bar to to the same?

Bruce_L
Posted : Wednesday, March 1, 2017 2:25:26 PM


Worden Trainer

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

Probably, but the open of the bar to be the same as what? The high, the low, the close, some value from a previous bar?



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hhphoto2006
Posted : Wednesday, March 1, 2017 2:55:00 PM
Registered User
Joined: 10/18/2008
Posts: 260

Hard to explain but I would be looking for long tails, I guess and or dojis, if that makes sense

Bruce_L
Posted : Wednesday, March 1, 2017 2:59:05 PM


Worden Trainer

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

If you actually mean a doji:

STOC1 <= 45 AND O = C AND H > L

If you just mean the open is also in the bottom 45% of the candle.

STOC1 <= 45 AND 100 * O <= 55 * L + 45 * H AND H > L

And the reverse:

If you actually mean a doji:

STOC1 >= 55 AND O = C AND H > L

If you just mean the open is also in the top 45% of the candle.

STOC1 >= 55 AND 100 * O >= 45 * L + 55 * H AND H > L



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hhphoto2006
Posted : Wednesday, March 1, 2017 5:34:00 PM
Registered User
Joined: 10/18/2008
Posts: 260

Thanks Again

Bruce_L
Posted : Thursday, March 2, 2017 9:08:54 AM


Worden Trainer

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

You're welcome.



-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.