Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
Registered User Joined: 10/18/2008 Posts: 260
|
Hi Bruce
Just checked the scan, the second interpretation works.
Thanks
|
|
Registered User Joined: 10/18/2008 Posts: 260
|
Bruce,
One more thing what is STOC1 mean I just want to invert the formula?
Thanks
|
|
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
|
|
Registered User Joined: 10/18/2008 Posts: 260
|
Great ! thank you
|
|
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?
|
|
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
|
|
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
|
|
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
|
|
Registered User Joined: 10/18/2008 Posts: 260
|
Thanks Again
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |