Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Platinum Customer
Joined: 3/29/2005 Posts: 16
|
Hey guys, I tried the search function,but didn't find what I was looking for.I need a few PCF's written.
1. price crossing from below to above it's 10 day ema,using the closing price.
2.TSV(exp) crossing the zero line , below to above..
3.TSV(exp) 20 day,crossing its 10day ema from below.
thanks for your time
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
1) C>XAVGC10 AND C1<XAVGC10.1
What is the period for your TSV?
- Craig Here to Help!
|
|
Platinum Customer
Joined: 3/29/2005 Posts: 16
|
Thanks Craig, 20 day TSV with a 10 day ema
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
2) XAVG(TSV1,20)>0 AND XAVG(TSV1.1,20)<0
3) XAVG(TSV1,10)>XAVG(TSV1,20) AND XAVG(TSV1.1,10)<XAVG(TSV1.1,20)
- Craig Here to Help!
|
|
Platinum Customer
Joined: 3/29/2005 Posts: 16
|
Thanks for your timely response.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
My pleasure!
- Craig Here to Help!
|
|
Registered User Joined: 9/3/2006 Posts: 6
|
Hi, how can I write formula that keeps 1st day outcome for next day and add 2nd day outcome and then all this outcome keeps for 3rd day and add 3rd day outcome etc. Thanks.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
I am not sure what you mean... Do you want the PCF to catch any cross in the last three days?
If so try this:
(XAVG(TSV1,20)>0 AND XAVG(TSV1.1,20)<0) OR (XAVG(TSV1.1,20)>0 AND XAVG(TSV1.2,20)<0) OR (XAVG(TSV1.2,20)>0 AND XAVG(TSV1.3,20)<0)
- Craig Here to Help!
|
|
Registered User Joined: 9/3/2006 Posts: 6
|
No I just have a formula wich needs to be calculated every day and it outcome got to be added to previous day outcome for example: 1st day (C-O)/(H-L)=X 2nd day (C-O)/(H-L)+X=Y //X - previous day outcome// 3rd day (C-O)/(H-L)+Y=Z //Y - previous day outcome// 4th day (C-O)/(H-L)+Z=P //Z - previous day outcome// ... n-th day (C-O)/(H-L)+(n-1)=n //(n-1) - previous day outcome// and so on.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
You are looking for a Custom Cumulative Indictator.
Right-click your chart. Add Indicator |Custom| Cumulative
Use these settings:
Up condition:
C=C
Down condition
C>C
Formula add/subtract:
(C-O)/(H-L)
- Craig Here to Help!
|
|
Registered User Joined: 9/3/2006 Posts: 6
|
OK Thanks.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
My pleasure.
- Craig Here to Help!
|
|
Guest-1 |