Registered User Joined: 12/22/2015 Posts: 3
|
Hello Bruce,
I tried to code these PCF but im not happy with the results.
can you code them for me?
tenkan crossing kijun above the kumo (crossing up)
tenkan crossing kijun below the kumo (crossing down)
tenkan crossing kijun in the kumo (crossing up)
tenkan crossing kijun in the kumo (crossing down)
thanks a lot for your help
J.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (djoul) tenkan crossing kijun above the kumo (crossing up)
(MAXH9 + MINL9) / 2 > (MAXH26 + MINL26) / 2 AND (MAXH9 + MINL9) / 2 > (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 AND (MAXH9 + MINL9) / 2 > (MAXH52.26 + MINL52.26) / 2 AND (MAXH9.1 + MINL9.1) / 2 <= (MAXH26.1 + MINL26.1) / 2
QUOTE (djoul) tenkan crossing kijun below the kumo (crossing down)
(MAXH9 + MINL9) / 2 < (MAXH26 + MINL26) / 2 AND (MAXH9 + MINL9) / 2 < (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 AND (MAXH9 + MINL9) / 2 < (MAXH52.26 + MINL52.26) / 2 AND (MAXH9.1 + MINL9.1) / 2 >= (MAXH26.1 + MINL26.1) / 2
QUOTE (djoul) tenkan crossing kijun in the kumo (crossing up)
(MAXH9 + MINL9) / 2 > (MAXH26 + MINL26) / 2 AND SGN((MAXH9 + MINL9) / 2 - (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4) + SGN((MAXH9 + MINL9) / 2 - (MAXH52.26 + MINL52.26) / 2) = 0 AND (MAXH9.1 + MINL9.1) / 2 <= (MAXH26.1 + MINL26.1) / 2
QUOTE (djoul) tenkan crossing kijun in the kumo (crossing down)
(MAXH9 + MINL9) / 2 < (MAXH26 + MINL26) / 2 AND SGN((MAXH9 + MINL9) / 2 - (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4) + SGN((MAXH9 + MINL9) / 2 - (MAXH52.26 + MINL52.26) / 2) = 0 AND (MAXH9.1 + MINL9.1) / 2 >= (MAXH26.1 + MINL26.1) / 2
Ichimoku Cloud
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/22/2015 Posts: 3
|
thanks a lot Bruce
have a nice week end
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
Hi Bruce,
I'm actuallylookin fr a similar code fo the Tenkancrossing the Kijun up, but with the addition that ts ross ocurs within the last 3 bars.And vce versa, th Tekan crossing the Kijun down within the last bars.
haks very much for you helpwith tis code. Kind regards,
Chris
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following assumes Conversion (Tenkan-Sen) still need to be above Base Line (Kijun-Sen).
MAXH9 + MINL9 > MAXH26 + MINL26 AND (MAXH9.1 + MINL9.1 <= MAXH26.1 + MINL26.1 OR MAXH9.2 + MINL9.2 <= MAXH26.2 + MINL26.2 OR MAXH9.3 + MINL9.3 <= MAXH26.3 + MINL26.3)
The following assumes Conversion (Tenkan-Sen) still need to be below Base Line (Kijun-Sen).
MAXH9 + MINL9 < MAXH26 + MINL26 AND (MAXH9.1 + MINL9.1 >= MAXH26.1 + MINL26.1 OR MAXH9.2 + MINL9.2 >= MAXH26.2 + MINL26.2 OR MAXH9.3 + MINL9.3 >= MAXH26.3 + MINL26.3)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
Hi Bruce,
Thanks vey much for your help.Much apprecated.
Chris
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
Hi Bruce,
I was wanting to write an Easyscan whereby the Tenkan is below the Kijun during the last 5 days, and
that the spread of the Kijun - Tenkan has been increasing for the last 5 days as well. Thanks very much for helping me out again.
Chris
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Can I have:
Span A is above Span B at the rightmost end of the chart in the future.
Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Chris55,
Please try the following Condition Formula.
MAXH26.4 + MINL26.4 > MAXH9.4 + MINL9.4 AND MAXH26 + MINL26 - MAXH9 - MINL9 > MAXH26.1 + MINL26.1 - MAXH9.1 - MINL9.1 AND MAXH26.1 + MINL26.1 - MAXH9.1 - MINL9.1 > MAXH26.2 + MINL26.2 - MAXH9.2 - MINL9.2 AND MAXH26.2 + MINL26.2 - MAXH9.2 - MINL9.2 > MAXH26.3 + MINL26.3 - MAXH9.3 - MINL9.3 AND MAXH26.3 + MINL26.3 - MAXH9.3 - MINL9.3 > MAXH26.4 + MINL26.4 - MAXH9.4 - MINL9.4 AND MAXH26.4 + MINL26.4 - MAXH9.4 - MINL9.4 > MAXH26.5 + MINL26.5 - MAXH9.5 - MINL9.5
diceman,
Please try the following Condition Formula.
(MAXH9 + MINL9 + MAXH26 + MINL26) / 4 > (MAXH52 + MINL52) / 2
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
HI BRUCE
I SCANNED 2 STOCKS WHICH HAVE A 5 DAY (KIJUN - TENKAN) SPREAD INCREASE,
BUT THEY DON'T SHOW WHEN I ADD THE NEW CONDITIONAL PCF (EGN, AQXP)
THEY DO SHOW AGAIN WEHE I REMOVE THE PCF FROM THE EASYSCAN.
NOT SURE WHY THIS IS HAPPENING -
THANK,
CHRIS
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The Condition Formula was missing an AND. This should be corrected above. Please try the new version.
Note this still won't return True for EGN because it hasn't been at least five bars since the lines crossed.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
GREAT, MANY THANKS BRUCE.
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
BRUCE,
I THOUGHT I COULD ADAPT YOUR PCF FROM A 5-BAR SPREAD TO A 3-BAR SPREAD,
BUT I'M NOT GETTING IT STRAIGHT. WOULD YOU BE SO KIND AD GIVE ME THE (LAST)
"3 BAR" VERSION OF THE ABOVE PCF?
MANY THANKS,
CHRIS
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following Condition Formula checks the requirements for 3 bars in a row instead of 5 bars in a row.
MAXH26.2 + MINL26.2 > MAXH9.2 + MINL9.2 AND MAXH26 + MINL26 - MAXH9 - MINL9 > MAXH26.1 + MINL26.1 - MAXH9.1 - MINL9.1 AND MAXH26.1 + MINL26.1 - MAXH9.1 - MINL9.1 > MAXH26.2 + MINL26.2 - MAXH9.2 - MINL9.2 AND MAXH26.2 + MINL26.2 - MAXH9.2 - MINL9.2 > MAXH26.3 + MINL26.3 - MAXH9.3 - MINL9.3
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/14/2016 Posts: 285
|
Thanks very much, perfect.
|
|
Registered User Joined: 10/7/2004 Posts: 35
|
IchiMoku Scan.
Bruce,
Is there a better way to scan for a chart which has both a Price above/(or below) the daily Cloud and the 10' cloud(above/or below) or do I need a PCF to scan for this? Thanx
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I would just click on price and select Create Scan Condition to create conditions for price being above Leading Span A and Leading Span B. Do this for both time frames and add all four conditions to the same EasyScan.
Because you aren't doing anything in the past or future, it is much easier and better to do it this way.
You would require the EasyScan to mix the time frames in any case (even if you did the above or below the cloud in a formula instead of by using Create Scan Condition).
Create Conditions from Your Chart (5:25)
Building a Scan with Multiple Conditions (7:29)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/22/2009 Posts: 23
|
(MAXH9 + MINL9) / 2 > (MAXH26 + MINL26) / 2 AND (MAXH9 + MINL9) / 2 > (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 AND (MAXH9 + MINL9) / 2 < (MAXH52.26 + MINL52.26) / 2 AND (MAXH9.1 + MINL9.1) / 2 >= (MAXH26.1 + MINL26.1) / 2
Hi Bruce,
Tried experimenting to accomplish 2 things without success
-
Like to scan stocks when tenken crosses up the kijun alot sooner below the kumo - 1 bar only.
-
Like to scan stocks when tenken crosses up the kijun below the kumo and first candle breaks into the kumo.
Thanks.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
So Tenken crossing up Kijun while only being below the Kumo for 1 bar?
(MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 > (MAXH9 + MINL9) / 2 AND (MAXH52.26 + MINL52.26) / 2 > (MAXH9 + MINL9) / 2 AND (MAXH9 + MINL9) / 2 > (MAXH26 + MINL26) / 2 AND (MAXH9.1 + MINL9.1) / 2 <= (MAXH26.1 + MINL26.1) / 2 AND ((MAXH9.27 + MINL9.27 + MAXH26.27 + MINL26.27) / 4 <= (MAXH9.1 + MINL9.1) / 2 OR (MAXH52.27 + MINL52.27) / 2 <= (MAXH9.1 + MINL9.1) / 2)
So Tenken crosses up Kujen and then breaks into the Kumo during the very next bar?
((MAXH9 + MINL9) / 2 >= (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 OR (MAXH9 + MINL9) / 2 >= (MAXH52.26 + MINL52.26) / 2) AND (MAXH9.27 + MINL9.27 + MAXH26.27 + MINL26.27) / 4 > (MAXH9.1 + MINL9.1) / 2 AND (MAXH52.27 + MINL52.27) / 2 > (MAXH9.1 + MINL9.1) / 2 AND (MAXH9.1 + MINL9.1) / 2 > (MAXH26.1 + MINL26.1) / 2 AND (MAXH9.2 + MINL9.2) / 2 <= (MAXH26.2 + MINL26.2) / 2
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/22/2009 Posts: 23
|
Thanks Bruce - that was super fast response.
I have tried deciphering your code & the support article but I still struggle with this.
I can still use the scans you have already provided event though I have not been clear.
If it is all possible to do all in one scan is what I am attempting to do-
-
Tenken crosses up kijun below the kumo
-
Not restricted to any # of bars price candle breaks into Kumo
-
Again not restricted to any # of bars price candle breaks above the kumo
If you could do this please, it will save me considerable amount of time.
Alternatively:
1. If you could modify and remove the 1 bar restriction please, i.e. anytime Tenken crosses up Kijun below the Kumo.
2. When the Tenken crosses up Kijun and breaks into the Kumo - it doen't have to be the next bar, i.e. any # of bars. However, the current code is good too to use.
Thank again
Joe
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Tenken crosses up kijun below the kumo
(MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 > (MAXH9 + MINL9) / 2 AND (MAXH52.26 + MINL52.26) / 2 > (MAXH9 + MINL9) / 2 AND (MAXH9 + MINL9) / 2 > (MAXH26 + MINL26) / 2 AND (MAXH9.1 + MINL9.1) / 2 <= (MAXH26.1 + MINL26.1) / 2
Tenken above Kijun and breaks into the Kumo
((MAXH9 + MINL9) / 2 >= (MAXH9.26 + MINL9.26 + MAXH26.26 + MINL26.26) / 4 OR (MAXH9 + MINL9) / 2 >= (MAXH52.26 + MINL52.26) / 2) AND (MAXH9 + MINL9) / 2 > (MAXH26 + MINL26) / 2 AND (MAXH9.1 + MINL9.1) / 2 < (MAXH9.27 + MINL9.27 + MAXH26.27 + MINL26.27) / 4 AND (MAXH9.1 + MINL9.1) / 2 < (MAXH52.27 + MINL52.27) / 2
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/22/2009 Posts: 23
|
Much appreciated. Thanks again Bruce.
Happy New Year.
|
|
Registered User Joined: 2/2/2017 Posts: 9
|
Hi Bruce,
I have a question regarding this topic: if I want to get 2 Tenkan lines crossing each other (let's say one 9 and one 18 long), would this be the correct formula for a crossover :
(MAXH9 + MINL9) / 2 > (MAXH18 + MINL18) / 2 and
(MAXH9.1 + MINL9.1) / 2 <= (MAXH18.1 + MINL18.1) / 2
Thank you for your support in advance!
Martin
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Yes, that should check for the 9 period version crossing up through the 18 period version. You could shorten this to the following in TC2000 v18 however.
XUP(MAXH9 + MINL9, MAXH18 + MINL18)
Note that you don't have to divide by two to check for the cross because this factor is included on both sides of the inequality.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 2/2/2017 Posts: 9
|
Thank you!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |