OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


  Current location        Thread information  
OmniTrader Professional Forum
OmniScripts
john carters squeeze
Last Activity 6/22/2018 4:46 AM
9 replies, 1421 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
Jarrod

Member

Posts: 15

Joined: 7/27/2010

User Profile
 
Subject : john carters squeeze
Posted : 3/5/2014 10:50 AM
Post #22690

Hi I was hoping someone could help me code carters squeeze indicator for omnitrader. Its when the boillinger bands squeeze inside of the keltner channels. Bb settings are 20 and 2.0 keltner are 20 and 1.5. If anyone has tos charting its in there under john carter. He also uses momentum 14 period to help gauge direcrtion and everything is in as one indicator.
Any help would be great.
Jarrod
carb897@yahoo.com
^ Top
Jim Dean

Sage
2000100010025
Posts: 3128

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 10:55 AM
Post #22691 - In reply to #22690

There have been a lot of posts on this ... please do a search on "John Carter" ... the likelihood is that there is an answer out there already.
^ Top
Jarrod

Member

Posts: 15

Joined: 7/27/2010

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 11:33 AM
Post #22692 - In reply to #22690

Thanks Jim found it.
^ Top
Jarrod

Member

Posts: 15

Joined: 7/27/2010

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 3:32 PM
Post #22693 - In reply to #22690

Jim,
I was able to find and set it up. My next question is how would you make an omniscan list to find stocks that are in a squeeze? That I have not been able to find.
Jarrod
^ Top
Jim Dean

Sage
2000100010025
Posts: 3128

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 3:36 PM
Post #22694 - In reply to #22693

post the code here and I'll show you how to adapt it
^ Top
Jarrod

Member

Posts: 15

Joined: 7/27/2010

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 3:52 PM
Post #22695 - In reply to #22690

#Indicaor
'Squeeze indicator
'
' Formula Name : Squeeze Indicator
' Author : KH Tang
' Date Added : 27 Nov 2006
' Origin : Idea presented in "Mastering the Trade" by John F. Carter
' Version : 1.0
' Level : Basic
'
'Translated for Omnitrader by Mel Dickover
'
#param "periods", 20
#param "KBperiods", 20
#param "BBwidth", 2
#param "KBwidth", 1.5
#param "lookback", 12
dim bbTop, bbBot, kTop, kBot as single
dim centerLine, bigMo, momMA as single
dim squeezed, result as boolean
bbTop = BOL_UPPER(periods,BBwidth)
bbBot = BOL_LOWER(periods,BBwidth)
centerline = SMA(KBperiods)
kTop = centerline + KBwidth * ATR(KBperiods)
kBot = centerline - KBwidth * ATR(KBperiods)
if bbTop < kTop and bbBot > kBot then
squeezed = true
else
squeezed = false
end if
bigMo = C - C[lookback]
momMA = EMA(bigMo,3)
if Squeezed = true then
Plot( "momentum", momMA, yellow )
else
Plot( "momentum", momMA, blue )
end if
if squeezed = true then
plotHist("Squeeze",.5,0,black,100)
'plotHist("",-1,0,black,50)
else
if bigMo > bigMo[1] then
PlotHist( "Squeeze", bigMo, 0, green )
else
PlotHist( "Squeeze", bigMo, 0, red )
end if
end if
if squeezed = true then
result = true
else
result = false
end if
return result


That's the code for the indicator itself. I would like to be able to adopt it to a omniscan list to find stocks that are in a squeeze.
Jarrod
^ Top
Jim Dean

Sage
2000100010025
Posts: 3128

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 4:02 PM
Post #22696 - In reply to #22695

save and compile the indicator via the OLang editor ... name it "JCsqueeze"

OScan rule would simply be:

JCsqueeze(20,20,2,1.5,12)

... you can adjust the parameters per the code below, as desired.

Since the Return value is either true (-1) or false (0), you don't need to have a relational operator (=, >, <, etc) in the formula.

^ Top
Jarrod

Member

Posts: 15

Joined: 7/27/2010

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 8:26 PM
Post #22697 - In reply to #22690

Thanks Jim works great. I hope to meet you at the bash . I am a member of your other to. Good info.
^ Top
Jarrod

Member

Posts: 15

Joined: 7/27/2010

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/5/2014 8:26 PM
Post #22698 - In reply to #22690

Other site.
^ Top
Keith Parsons

Member
25
Posts: 40

Joined: 6/5/2012
Location: Durban, RSA

User Profile
 
Subject : RE: john carters squeeze
Posted : 3/6/2014 6:39 AM
Post #22700 - In reply to #22698

Hi Jarrod,
Not sure if you have seen it - but there is a very interesting post named #4036 Squeeze Indicator in OT Pro. Includes reference to John Carter. Post has contributions by some very experienced trading personnel.

Well worth the effort going over it.
Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.