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 |

Condition help Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
SILVERWESOKE
Posted : Tuesday, January 23, 2018 3:54:38 PM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 885

I would like to make a formula to give me a cumulative plot for the following conditon

The number of days a stock gaps up ( O>C1) when the day before is green candle ( C1>O1)

divided by the total number of green candles.

Thanks!

 

 
StockGuy
Posted : Tuesday, January 23, 2018 4:15:25 PM

Administration

Joined: 9/30/2004
Posts: 9,187

Not sure if this is possible but at a minimum we'll need to define a period. "Total number of green candles" over the last 50 bars? 100 bars?

SILVERWESOKE
Posted : Tuesday, January 23, 2018 4:33:48 PM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 885

lets try 50 days

 

StockGuy
Posted : Tuesday, January 23, 2018 4:38:36 PM

Administration

Joined: 9/30/2004
Posts: 9,187

You'll need to run version 17 or higher but the following will plot the ratio of gap us after a green candle vs green candles over the last 50 bars.

CountTrue(O>C1 AND C1>O1,50) / CountTrue(C1>O1,50)
 
SILVERWESOKE
Posted : Tuesday, January 23, 2018 4:43:37 PM
Gold Customer Gold Customer

Joined: 6/29/2005
Posts: 885

Im on gold as you can see.. cant I make something on there?

If not, can I separat them into2 different conditon to plot

( though I rather hve the ratio)

BTW do you kno there is somtng wron with thishat.. Itisimpossilbe type inhere.. misseskeystrokses, wont space  etc..

 

StockGuy
Posted : Tuesday, January 23, 2018 4:45:08 PM

Administration

Joined: 9/30/2004
Posts: 9,187

You can put that formula into a Custom PCF Indicator with Gold service, but you will have to run TC2000 version 17 or higher.  The CountTrue syntax is not available in older versions.

http://www.tc2000.com/download

 

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.