logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pirx  
#1 Posted : Tuesday, March 21, 2006 7:27:33 PM(UTC)
pirx

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/18/2005(UTC)
Posts: 43
Location: Slovenia, EU

Hello! In dr. Elder´s book, Come Into My Trading Room, he describes an interesting indicator, called Market Thermometer. This indicator helps to differentiate between sleepy, quiet periods and runaway e[censored]odes. The "original" formula is: Temperature = the greater of either (High[size=8:b7a4d40e1d]today[/size:b7a4d40e1d] - High[size=8:b7a4d40e1d]yesterday[/size:b7a4d40e1d]) or (Low[size=8:b7a4d40e1d]yesterday[/size:b7a4d40e1d] - Low[size=8:b7a4d40e1d]today[/size:b7a4d40e1d]) He also gave the "converted" formula for "Windows on WallStreet": if (hi<ref(hi,-1) and lo>ref(lo,-1), 0, if ((hi-ref(hi,-1)) > (ref(lo,-1)- lo), hi - ref(hi,-1), ref(lo,-1)-lo)) If it´s not too hard to convert this into MS formula, I would ask someone, to be so kind, and do it, because I don´t know how :eek: Thanks! :)
Jose  
#2 Posted : Tuesday, March 21, 2006 8:35:20 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
pirx wrote:
Temperature = the greater of either (High[size=8:7dbbc9f364]today[/size:7dbbc9f364] - High[size=8:7dbbc9f364]yesterday[/size:7dbbc9f364]) or (Low[size=8:7dbbc9f364]yesterday[/size:7dbbc9f364] - Low[size=8:7dbbc9f364]today[/size:7dbbc9f364])
Try this formula: [code:1:7dbbc9f364]Max(H-Ref(H,-1),Ref(L,-1)-L)[/code:1:7dbbc9f364] jose '-
StorkBite  
#3 Posted : Tuesday, March 21, 2006 9:27:01 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
There are several additional examples on the forum too.
pirx  
#4 Posted : Tuesday, March 21, 2006 9:30:25 PM(UTC)
pirx

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/18/2005(UTC)
Posts: 43
Location: Slovenia, EU

Jose, thank you very much. I´ve added this indicator to the MS and it works just fine :) I´ve looked up for the Max() function (which I did not understand) in Formula Primer and it is used for "comparing two values and returns the highest." I guess this makes your formula an exact copy of Elder´s template. Thanks again! He also used a 22 day EMA on this indicator, which was quite flat. (despite of prices beeing volatile) But if I try to add a 22 EMA, the line gets jagged. As far as I know, there is only one way to add EMA to this indicator, or am I wrong?
pirx  
#5 Posted : Tuesday, March 21, 2006 9:47:31 PM(UTC)
pirx

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/18/2005(UTC)
Posts: 43
Location: Slovenia, EU

Hey g_stockman, I was trying to find something about M.T. before I posted, but I could not find such a topic here. I´ll try again :)
pirx  
#6 Posted : Tuesday, March 21, 2006 10:00:44 PM(UTC)
pirx

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/18/2005(UTC)
Posts: 43
Location: Slovenia, EU

Here is an example how EMA should look on this histogram. http://qtstalker.sourceforge.net/therm.htmlthere a way to "fix" this?
StorkBite  
#7 Posted : Tuesday, March 21, 2006 10:16:34 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey Pirx- Check out this thread: http://forum.equis.com/viewtopic.php?p=15442#15442 You can also Google search the forum, but the internal search won't pull up the topic. None of these formulas is exactly the same, but they are free and the concept is the same.
pirx  
#8 Posted : Thursday, March 23, 2006 8:36:16 PM(UTC)
pirx

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/18/2005(UTC)
Posts: 43
Location: Slovenia, EU

Thanks for the link, g_stockman. But I still did not manage to figure it out, how to plot EMA "correctly." Is it possible to plot EMA as on the link I pasted?
StorkBite  
#9 Posted : Thursday, March 23, 2006 8:52:38 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Yes, you can plot a separate EMA of just about any indicator. Below is an example; however, if you want Elder's formula, you'll need to purchase it. This is only an example... [code:1:e36adfa97d]MarketTemp:= If(H<Ref(H,-1) AND L>Ref(L,-1),0, If(H-Ref(H,-1)>Ref(L,-1)-L, H-Ref(H,-1),Ref(L,-1)-L)); AvgMarketTemp:= mov(MarketTemp, 21, E); MarketTemp; AvgMarketTemp[/code:1:e36adfa97d]
pirx  
#10 Posted : Thursday, March 23, 2006 9:13:08 PM(UTC)
pirx

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 10/18/2005(UTC)
Posts: 43
Location: Slovenia, EU

Thanks for your kindness! I appreciate it.
Users browsing this topic
Guest (Hidden)
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.