Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

If-Then Logic Alternative - Is it Possible? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
RZR
Posted : Tuesday, March 8, 2016 11:03:39 PM
Platinum Customer Platinum Customer

Joined: 3/19/2008
Posts: 64

Hey Bruce,

Hope you're well.  

I stumbled across this image that appears to show if-then logic in Telechart.  

It is for sure the same font and drawing tool buttons - but for the life of me can't figure out how one could add the multiple green moving averages that plot below (under some condition) then above (red dots) under some other condition without using an if/then logic. 

https://pbs.twimg.com/profile_banners/1150969206/1398552710/1500x500

Am I missing some basic syntax construct that would support this?

diceman
Posted : Wednesday, March 9, 2016 12:27:26 AM
Registered User
Joined: 1/28/2005
Posts: 6,049


That looks like a few "Volatility Stop" indicators with different sized ATRs.

 

 

 

 

Thanks 

RZR
Posted : Wednesday, March 9, 2016 11:30:02 PM
Platinum Customer Platinum Customer

Joined: 3/19/2008
Posts: 64

Hey Diceman,

You're correct.  Didn't think of that one, and I appreciate you chiming in.  In addition to Bruce's invaluable expertise, you've been an excellent resource for many years as well. 

Cheers

Bruce_L
Posted : Friday, March 11, 2016 11:51:47 AM


Worden Trainer

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

As far as those particular dots go, I would think diceman is probably spot on as to the best way to try to reproduce them in TC2000.

As a general concept however, plotting dots based on at least local if...then...else type constructs is possible.

Plotting Swing Highs and Lows with Dots

But I don't think it would work well in the case from your image, as it looks like it is more like a state machine. The problem with this is that while we can do if...then...else at least to some extent, there are no user defined variables which could be used to store the state from one bar to the next.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
RZR
Posted : Monday, March 14, 2016 6:45:29 PM
Platinum Customer Platinum Customer

Joined: 3/19/2008
Posts: 64

Thanks Bruce.  I hadn't seen that link before, some definitely great ideas there.  I have created dot-style indicators (in a sense similar to my original question) by taking abs(conditional test)*(H*1.001) or vice versa with L.  FWIW, I was able to closely reproduce that using the settings 55,1.5 then 1.75 and so on w/ the vol stop. 

Appreciate your chiming in as always. 

Bruce_L
Posted : Tuesday, March 15, 2016 11:59:32 AM


Worden Trainer

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

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.