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 |

TC2000 to SF-5 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
OptionPaul
Posted : Wednesday, January 1, 2014 6:44:05 PM
Registered User
Joined: 10/7/2004
Posts: 11

Hi Bruce. I love the Squeeze code you wrote for TC2000 and want to use it in SF-5. Could you please convert it so I can use it as a chart indicator in SF-5? For your reference I am pasting the Momentum, Sqz on & Sqz out indicators you wrote for your convenience. Thanks so much.

Sqz on: (Red dot)

200 * (SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20) * 4 / 3 / ((AVGH20 - AVGL20) / 2 + (ABS(H - C1) + ABS(L - C1) + ABS(H1 - C2) + ABS(L1 - C2) + ABS(H2 - C3) + ABS(L2 - C3) + ABS(H3 - C4) + ABS(L3 - C4) + ABS(H4 - C5) + ABS(L4 - C5) + ABS(H5 - C6) + ABS(L5 - C6) + ABS(H6 - C7) + ABS(L6 - C7) + ABS(H7 - C8) + ABS(L7 - C8) + ABS(H8 - C9) + ABS(L8 - C9) + ABS(H9 - C10) + ABS(L9 - C10) + ABS(H10 - C11) + ABS(L10 - C11) + ABS(H11 - C12) + ABS(L11 - C12) + ABS(H12 - C13) + ABS(L12 - C13) + ABS(H13 - C14) + ABS(L13 - C14) + ABS(H14 - C15) + ABS(L14 - C15) + ABS(H15 - C16) + ABS(L15 - C16) + ABS(H16 - C17) + ABS(L16 - C17) + ABS(H17 - C18) + ABS(L17 - C18) + ABS(H18 - C19) + ABS(L18 - C19) + ABS(H19 - C20) + ABS(L19 - C20)) / 40 + .000001) >= 1)

Sqz out: (Yellow Dot)

200 * (SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20) * 4 / 3 / ((AVGH20 - AVGL20) / 2 + (ABS(H - C1) + ABS(L - C1) + ABS(H1 - C2) + ABS(L1 - C2) + ABS(H2 - C3) + ABS(L2 - C3) + ABS(H3 - C4) + ABS(L3 - C4) + ABS(H4 - C5) + ABS(L4 - C5) + ABS(H5 - C6) + ABS(L5 - C6) + ABS(H6 - C7) + ABS(L6 - C7) + ABS(H7 - C8) + ABS(L7 - C8) + ABS(H8 - C9) + ABS(L8 - C9) + ABS(H9 - C10) + ABS(L9 - C10) + ABS(H10 - C11) + ABS(L10 - C11) + ABS(H11 - C12) + ABS(L11 - C12) + ABS(H12 - C13) + ABS(L12 - C13) + ABS(H13 - C14) + ABS(L13 - C14) + ABS(H14 - C15) + ABS(L14 - C15) + ABS(H15 - C16) + ABS(L15 - C16) + ABS(H16 - C17) + ABS(L16 - C17) + ABS(H17 - C18) + ABS(L17 - C18) + ABS(H18 - C19) + ABS(L18 - C19) + ABS(H19 - C20) + ABS(L19 - C20)) / 40 + .000001) < 1)

Momentum Histogram:

100 * (C / C12 - 1)

 
Bruce_L
Posted : Friday, January 10, 2014 2:20:40 PM


Worden Trainer

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

You should be able to Open an attached Indicator directly into a running copy of StockFinder 5 (and save it from within StockFinder 5 if desired). You could also Save it to the \My Documents\StockFinder5\(Your Username)\My Indicators\ folder and then load it like you would any other Indicator (or Copy and Paste it there from wherever it Saves if you can't specify the destination directory when Saving).

Attachments:
TTM Squeeze.sfIndRC - 15 KB, downloaded 1,204 time(s).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
OptionPaul
Posted : Friday, January 10, 2014 4:17:17 PM
Registered User
Joined: 10/7/2004
Posts: 11

Thank you sir...you're the best!

gadler
Posted : Wednesday, May 28, 2014 2:11:54 PM
Registered User
Joined: 10/7/2004
Posts: 28

Bruce. I have sevral custom indicators in TC2000 that I would lke to use in SF5. You said that you could open attached Indicators in SF5. How do you take a custom indicator in TC2000 and attach it.

Gary

Bruce_L
Posted : Thursday, May 29, 2014 9:39:36 AM


Worden Trainer

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

You can't load a TC2000 indicator into StockFinder. I re-created what was described by OptionPaul in StockFinder, saved the StockFinder version and attached it to my post.

I would need all of the details of your TC2000 indicators in order to reproduce them in StockFinder. Once that was done, I could attach the StockFinder versions to a post so you could download them and use them in your own copy of StockFinder.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
gadler
Posted : Thursday, May 29, 2014 11:27:21 AM
Registered User
Joined: 10/7/2004
Posts: 28
Bruce, Here are the two indicators I am interested in putting in SF5.In addition how do you take the attached file and save it in SF5. I tried to use the one you attached previously in this thread and cannot seem to make it work.GaryFORMULA UP(((100 * (C - MINL12)) / (MAXH12 - MINL12)) * (AVGC12 / AVGC12.1) + ((100 * (C1 - MINL12.1)) / (MAXH12.1 - MINL12.1)) * (AVGC12.1 / AVGC12.2) + ((100 * (C2 - MINL12.2)) / (MAXH12.2 - MINL12.2)) * (AVGC12.2 / AVGC12.3) + ((100 * (C3 - MINL12.3)) / (MAXH12.3 - MINL12.3)) * (AVGC12.3 / AVGC12.4) + ((100 * (C4 - MINL12.4)) / (MAXH12.4 - MINL12.4)) * (AVGC12.4 / AVGC12.5) + ((100 * (C5 - MINL12.5)) / (MAXH12.5 - MINL12.5)) * (AVGC12.5 / AVGC12.6) + ((100 * (C6 - MINL12.6)) / (MAXH12.6 - MINL12.6)) * (AVGC12.6 / AVGC12.7)) / 7 + (((100 * (MAXH12 - MINL12)) / (MAXH12 - L)) / (AVGC12 / AVGC12.1) + ((100 * (MAXH12.1 - MINL12.1)) / (MAXH12.1 - L1)) / (AVGC12.1 / AVGC12.2) + ((100 * (MAXH12.2 - MINL12.2)) / (MAXH12.2 - L2)) / (AVGC12.2 / AVGC12.3) + ((100 * (MAXH12.3 - MINL12.3)) / (MAXH12.3 - L3)) / (AVGC12.3 / AVGC12.4) + ((100 * (MAXH12.4 - MINL12.4)) / (MAXH12.4 - L4)) / (AVGC12.4 / AVGC12.5) + ((100 * (MAXH12.5 - MINL12.5)) / (MAXH12.5 - L5)) / (AVGC12.5 / AVGC12.6) + ((100 * (MAXH12.6 - MINL12.6)) / (MAXH12.6 - L6)) / (AVGC12.6 / AVGC12.7)) / 7FORMULA DOWN(((100 * (C - MINL12)) / (MAXH12 - MINL12)) * (AVGC12 / AVGC12.1) + ((100 * (C1 - MINL12.1)) / (MAXH12.1 - MINL12.1)) * (AVGC12.1 / AVGC12.2) + ((100 * (C2 - MINL12.2)) / (MAXH12.2 - MINL12.2)) * (AVGC12.2 / AVGC12.3) + ((100 * (C3 - MINL12.3)) / (MAXH12.3 - MINL12.3)) * (AVGC12.3 / AVGC12.4) + ((100 * (C4 - MINL12.4)) / (MAXH12.4 - MINL12.4)) * (AVGC12.4 / AVGC12.5) + ((100 * (C5 - MINL12.5)) / (MAXH12.5 - MINL12.5)) * (AVGC12.5 / AVGC12.6) + ((100 * (C6 - MINL12.6)) / (MAXH12.6 - MINL12.6)) * (AVGC12.6 / AVGC12.7)) / 7 + ( ((100 * (MAXH12 - MINL12)) / (H - MINL12)) / (AVGC12 / AVGC12.1) + ((100 * (MAXH12.1 - MINL12.1)) / (H1 - MINL12.1)) / (AVGC12.1 / AVGC12.2) + ((100 * (MAXH12.2 - MINL12.2)) / (H2 - MINL12.2)) / (AVGC12.2 / AVGC12.3) + ((100 * (MAXH12.3 - MINL12.3)) / (H3 - MINL12.3)) / (AVGC12.3 / AVGC12.4) + ((100 * (MAXH12.4 - MINL12.4)) / (H4 - MINL12.4)) / (AVGC12.4 / AVGC12.5) + ((100 * (MAXH12.5 - MINL12.5)) / (H5 - MINL12.5)) / (AVGC12.5 / AVGC12.6) + ((100 * (MAXH12.6 - MINL12.6)) / (H6 - MINL12.6)) / (AVGC12.6 / AVGC12.7)) / 7
gadler
Posted : Thursday, May 29, 2014 11:29:32 AM
Registered User
Joined: 10/7/2004
Posts: 28

Sorry Bruce. It looked okay before I posted it but somehow got all strung together when I did post it.

 

Gary

gadler
Posted : Thursday, May 29, 2014 11:31:49 AM
Registered User
Joined: 10/7/2004
Posts: 28

Bruce, Here are the two indicators I am interested in putting in SF5.In addition how do you take the attached file and save it in SF5. I tried to use the one you attached previously in this thread and cannot seem to make it work.

Gary

 

FORMULA UP

 

(((100 * (C - MINL12)) / (MAXH12 - MINL12)) * (AVGC12 / AVGC12.1) + ((100 * (C1 - MINL12.1)) / (MAXH12.1 - MINL12.1)) * (AVGC12.1 / AVGC12.2) + ((100 * (C2 - MINL12.2)) / (MAXH12.2 - MINL12.2)) * (AVGC12.2 / AVGC12.3) + ((100 * (C3 - MINL12.3)) / (MAXH12.3 - MINL12.3)) * (AVGC12.3 / AVGC12.4) + ((100 * (C4 - MINL12.4)) / (MAXH12.4 - MINL12.4)) * (AVGC12.4 / AVGC12.5) + ((100 * (C5 - MINL12.5)) / (MAXH12.5 - MINL12.5)) * (AVGC12.5 / AVGC12.6) + ((100 * (C6 - MINL12.6)) / (MAXH12.6 - MINL12.6)) * (AVGC12.6 / AVGC12.7)) / 7 + (((100 * (MAXH12 - MINL12)) / (MAXH12 - L)) / (AVGC12 / AVGC12.1) + ((100 * (MAXH12.1 - MINL12.1)) / (MAXH12.1 - L1)) / (AVGC12.1 / AVGC12.2) + ((100 * (MAXH12.2 - MINL12.2)) / (MAXH12.2 - L2)) / (AVGC12.2 / AVGC12.3) + ((100 * (MAXH12.3 - MINL12.3)) / (MAXH12.3 - L3)) / (AVGC12.3 / AVGC12.4) + ((100 * (MAXH12.4 - MINL12.4)) / (MAXH12.4 - L4)) / (AVGC12.4 / AVGC12.5) + ((100 * (MAXH12.5 - MINL12.5)) / (MAXH12.5 - L5)) / (AVGC12.5 / AVGC12.6) + ((100 * (MAXH12.6 - MINL12.6)) / (MAXH12.6 - L6)) / (AVGC12.6 / AVGC12.7)) / 7

 

FORMULA DOWN

 

(((100 * (C - MINL12)) / (MAXH12 - MINL12)) * (AVGC12 / AVGC12.1) + ((100 * (C1 - MINL12.1)) / (MAXH12.1 - MINL12.1)) * (AVGC12.1 / AVGC12.2) + ((100 * (C2 - MINL12.2)) / (MAXH12.2 - MINL12.2)) * (AVGC12.2 / AVGC12.3) + ((100 * (C3 - MINL12.3)) / (MAXH12.3 - MINL12.3)) * (AVGC12.3 / AVGC12.4) + ((100 * (C4 - MINL12.4)) / (MAXH12.4 - MINL12.4)) * (AVGC12.4 / AVGC12.5) + ((100 * (C5 - MINL12.5)) / (MAXH12.5 - MINL12.5)) * (AVGC12.5 / AVGC12.6) + ((100 * (C6 - MINL12.6)) / (MAXH12.6 - MINL12.6)) * (AVGC12.6 / AVGC12.7)) / 7 + ( ((100 * (MAXH12 - MINL12)) / (H - MINL12)) / (AVGC12 / AVGC12.1) + ((100 * (MAXH12.1 - MINL12.1)) / (H1 - MINL12.1)) / (AVGC12.1 / AVGC12.2) + ((100 * (MAXH12.2 - MINL12.2)) / (H2 - MINL12.2)) / (AVGC12.2 / AVGC12.3) + ((100 * (MAXH12.3 - MINL12.3)) / (H3 - MINL12.3)) / (AVGC12.3 / AVGC12.4) + ((100 * (MAXH12.4 - MINL12.4)) / (H4 - MINL12.4)) / (AVGC12.4 / AVGC12.5) + ((100 * (MAXH12.5 - MINL12.5)) / (H5 - MINL12.5)) / (AVGC12.5 / AVGC12.6) + ((100 * (MAXH12.6 - MINL12.6)) / (H6 - MINL12.6)) / (AVGC12.6 / AVGC12.7)) / 7 Back to top

Bruce_L
Posted : Thursday, May 29, 2014 2:29:22 PM


Worden Trainer

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

The key is to get the attached files into the \My Documents\StockFinder5\(Your Username)\My Indicators\ folder. After that, they should be available to add just like any other indicator in StockFinder.

That said, I have also include the actual RealCode for Formula Up:

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Formula Up
'|******************************************************************
Static Up As Single
If isFirstBar Then
	Up = 0
End If
If CurrentIndex >= 12 Then
	Dim AvgNet As Single = Price.AVGC(12) / Price.AVGC(12, 1)
	Dim Range As Single = Price.MaxHigh(12) - Price.MinLow(12)
	Dim CL12 As Single = Price.Last - Price.MinLow(12)
	Dim H12L As Single = Price.MaxHigh(12) - Price.Low
	Up += 100 * (CL12 / Range + Range / H12L) / AvgNet / 7
End If
If CurrentIndex >= 18 Then
	Plot = Up
	Dim AvgNet As Single = Price.AVGC(12, 6) / Price.AVGC(12, 7)
	Dim Range As Single = Price.MaxHigh(12, 6) - Price.MinLow(12, 6)
	Dim CL12 As Single = Price.Last(6) - Price.MinLow(12, 6)
	Dim H12L As Single = Price.MaxHigh(12, 6) - Price.Low(6)
	Up -= 100 * (CL12 / Range + Range / H12L) / AvgNet / 7
Else
	Plot = Single.NaN
End If

And for Formula Down:

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Formula Down
'|******************************************************************
Static Down As Single
If isFirstBar Then
	Down = 0
End If
If CurrentIndex >= 12 Then
	Dim AvgNet As Single = Price.AVGC(12) / Price.AVGC(12, 1)
	Dim Range As Single = Price.MaxHigh(12) - Price.MinLow(12)
	Dim CL12 As Single = Price.Last - Price.MinLow(12)
	Dim HL12 As Single = Price.High - Price.MinLow(12)
	Down += 100 * (CL12 / Range + Range / HL12) / AvgNet / 7
End If
If CurrentIndex >= 18 Then
	Plot = Down
	Dim AvgNet As Single = Price.AVGC(12, 6) / Price.AVGC(12, 7)
	Dim Range As Single = Price.MaxHigh(12, 6) - Price.MinLow(12, 6)
	Dim CL12 As Single = Price.Last(6) - Price.MinLow(12, 6)
	Dim HL12 As Single = Price.High(6) - Price.MinLow(12, 6)
	Down -= 100 * (CL12 / Range + Range / HL12) / AvgNet / 7
Else
	Plot = Single.NaN
End If

Attachments:
Formula_Up.sfIndRC - 6 KB, downloaded 1,164 time(s).
Formula_Down.sfIndRC - 6 KB, downloaded 1,181 time(s).



-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.