Discussions
»
Product and Service Development
»
MetaStock
»
Market Thermometer by dr. Elder [RESOLVED]
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! :)
|
|
|
|
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 '-
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
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 :)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 10/18/2005(UTC) Posts: 43 Location: Slovenia, EU
|
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
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]
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
MetaStock
»
Market Thermometer by dr. Elder [RESOLVED]
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.