[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Market Thermometer



PureBytes Links

Trading Reference Links

Hi, I assume you want inside days to be 0.

1.  The easy way:
Temp = IIf(Inside()==1,0,Max(H-Ref(H,-1),Ref(L,-1)-L)); 
Plot(Temp,"Temperature",4,1);

2.  The less easy way:
Temp = IIf(H < Ref(H,-1) AND L > Ref(L,-1), 0, IIf((H -
Ref(H,-1))>(Ref(L,-1)- L),H-Ref(H,-1),Ref(L,-1)-L));
Plot(Temp,"Temperature",4,1);

Mark


--- In amibroker@xxxxxxxxxxxxxxx, "dtfreak1025" <dtfreak1025@xxxx> wrote:
> Hi Group;
>    I am trying to get the following Windows on Wall St.
> formula into AmiBroker.
> 
> 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))
> 
> The Formula is:
> 
> Temperature = the greater of either (HIGHtoday - HIGHyesterday)or
> (LOWyesterday - LOWtoday)
> 
> Elders' Market Thermometer measures how far the most extreme point of 
> today,either high or low, protrudes outside of yesterdays range.The 
> greater the extension of todays bar outside of yesterday's, the 
> higher the Market temperature.
> 
> 
> Any help would be appreciated
> TIA to all.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/