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 |

State Machine Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
traderlady
Posted : Tuesday, September 5, 2017 3:35:13 PM
Registered User
Joined: 10/7/2004
Posts: 1,178

State machine: a device that can be in one of a set number of stable conditions depending on its previous condition and on the present values of its inputs.

Just curious, Bruce.

Do you -- or have you ever -- used a state machine in your calculations?

Or in developing trading systems?

 

 

Bruce_L
Posted : Tuesday, September 5, 2017 3:39:52 PM


Worden Trainer

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

I think we created a few state machine indicators for customers for StockFinder, but there really isn't a good way to create your own in TC2000 (the PCF Language doesn't have user defined variables to store the state).

I know for example we helped create Darvas Boxes (which use state machine type logic) for a customer in StockFinder at one point, but I really would know of any good way to create Darvas Boxes in TC2000.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Al_Gorithm
Posted : Tuesday, September 5, 2017 3:42:06 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

Being a programmer, I looked into it a few years back. Interesting concept. Didn't stick with it (unfortunately) long enough to have much to contribute.

Still, ... would be cool if State Machines could be implemented in TC2000.

The possibilities are ... whoops ... out of coffee. Barista!

Al_Gorithm
Posted : Tuesday, September 5, 2017 3:47:31 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

Haven't thought of State Machines in years, but maybe ...

If you can feed the output list of tickers from one EasyScan as input to the next EasyScan, each scan along the way can represent a state (ie, using EasyScan results instead of variables to store the state).

But it's been hours since my first coffee, so there's probably a big flaw staring me right in the face. :)

 

HarleyBD
Posted : Tuesday, September 19, 2017 10:32:52 AM
Platinum Customer Platinum Customer

Joined: 6/30/2014
Posts: 60

Oh yes, state machines and TC2000.  As a programmer, I'm waiting for a memory stack and that all precious GOTO command.  (Maybe with version 17.9999999999999?) We can do wonders with GOTO.  For now, I place values in the WATCHLIST columns, with results then sorted by most important first.

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.