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

Notification

Icon
Error

Options
Go to last post Go to first unread
underground  
#1 Posted : Sunday, September 11, 2005 2:20:50 AM(UTC)
underground

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/23/2005(UTC)
Posts: 37

Has any one programmed the BQ-Indicator? http://www.alticom.com/finance/rr-tbi/index.html
StorkBite  
#2 Posted : Sunday, September 11, 2005 2:30:09 AM(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 UG- Avail: https://www.metastock.com/Customer/Resources/TASC/Article.aspx?c=3&p=&Id=61ndicator David Sepiashvili's article "Trend Quality Indicator" introduces two new indicators; Q-indicator and B-indictor. Both can be added to MetaStock with the formulas listed below. To enter this indicator into MetaStock: In the Tools menu, select Indicator Builder. Click New to open the Indicator Editor for a new indicator. Type the name of the formula. Click in the larger window and type in the formula. Name: Q-indicator m:=Input("% Scalar trend period",1,25,4); n:=Input("% Scalar noise period",1,500,250); cf:=Input("% Scalar correction factor",1,250,2); p1:=Input("First moving average periods",1,200,7); p2:=Input("Second moving average periods",1,200,15); rev:=Mov(C,p1,E)-Mov(C,p2,E); pds:=If(rev>0,1,-1); dc:=ROC(C,1,$); cpc:=If(pds<>Ref(pds,-1),0,(dc*pds)+PREV); trend:=If(pds<>Ref(pds,-1),0,(cpc*(1/m))+(PREV*(1-(1/m)))); dt:=cpc-trend; noise:=cf*Sqrt(Mov(dt*dt,n,S)); trend/noise Name: B-indicator m:=Input("% Scalar trend period",1,25,4); n:=Input("% Scalar noise period",1,500,250); cf:=Input("% Scalar correction factor",1,250,2); p1:=Input("First moving average periods",1,200,7); p2:=Input("Second moving average periods",1,200,15); rev:=Mov(C,p1,E)-Mov(C,p2,E); pds:=If(rev>0,1,-1); dc:=ROC(C,1,$); cpc:=If(pds<>Ref(pds,-1),0,(dc*pds)+PREV); trend:=If(pds<>Ref(pds,-1),0,(cpc*(1/m))+(PREV*(1-(1/m)))); dt:=cpc-trend; noise:=cf*Sqrt(Mov(dt*dt,n,S)); temp:=If(Abs(trend)+Abs(noise)=0,1,Abs(trend)+Abs(noise)); (Abs(trend)/temp)*100;
wabbit  
#3 Posted : Sunday, September 11, 2005 3:24:53 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
In the October 2004 and subsequent issues of MetaStock Tips and Tricks Roy Larsen points out the code as posted on the Equis website has an error, and hence just about every site on the net that has copied the code is also erroneous, including the code as posted on this forum, above. I am not sure whether Roy is willing to share the correct code. You might want to ask him nicely. I have the correct code by the fact I am a subscriber to his excellent monthly newsletter, but am not at the liberty to share this information due to the complexities of copyright law. I suggest you use the code above with caution. Sorry, I cannot help further. wabbit :D P.S. See Roy's site at: http://www.metastocktips.co.nz/index.html
StorkBite  
#4 Posted : Sunday, September 11, 2005 4:29:50 AM(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)
Oops... guess that's why it wasn't in our formula collection (and isn't any longer). Thanks for shedding light on that near miss, Wabbit! :wink:
underground  
#5 Posted : Sunday, September 11, 2005 4:16:55 PM(UTC)
underground

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/23/2005(UTC)
Posts: 37

Thanks guys - I already have Roy's Newsletter its worth ever penny - Thus I have the B and Q indicator but not the BQ-Indicator. Maybe I will have it inthe future.
Jose  
#6 Posted : Monday, September 12, 2005 1:25:37 AM(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)
Has anyone tried the BBQ indicator? The problem as I see it, is that the BBQ could grill one's CPU with its high count of PREV functions: [code:1:20e444e178] ============= BBQ indicator ============= ---8<--------------- { Try at own risk! } { With thanks to Henry for PREV() inspiration } x:=If(C>Ref(C,-1),C,PREV); { Plot on price chart, and wait... } If(x>Ref(x,-1),PREV, If(x>Ref(x,-2),PREV, If(x>Ref(x,-3),PREV, If(x>Ref(x,-4),PREV, If(x>Ref(x,-5),PREV, If(x>Ref(x,-6),PREV, If(x>Ref(x,-7),PREV, If(x>Ref(x,-8),PREV, If(x>Ref(x,-9),PREV, If(x>Ref(x,-10),PREV, If(x>Ref(x,-11),PREV, If(x>Ref(x,-12),PREV, If(x>Ref(x,-13),PREV, If(x>Ref(x,-14),PREV, If(x>Ref(x,-15),PREV, x))))))))))))))); ---8<--------------- [/code:1:20e444e178] jose '-)
Patrick  
#7 Posted : Monday, September 12, 2005 3:16:35 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Wow ... Jose why the hell would you write such a silly thing? :lol: Did you try to run it? :oops: Patrick :mrgreen:
Jose  
#8 Posted : Monday, September 12, 2005 3:32:58 AM(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)
Huh? You really think the BBQ indicator is silly, Patrick? :shock: What about all those other PREV-based formulae being posted elsewhere by the dozen - are they really that useful? :wink: Anyway, I've tried running the BBQ (barbecue for non-English speakers) on my older PC, and it is now a heap of molten plastic & metal. Perhaps next time I'll try and run an exploration based on the BBQ - let's see what happens then. jose '-)
Patrick  
#9 Posted : Monday, September 12, 2005 3:37:22 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Quote:
What about all those other PREV-based formulae being posted elsewhere by the dozen - are they really that useful? :wink:
:lol: Well obviously I don't use them and I don't look at them so they don't bother me ... ;)
wabbit  
#10 Posted : Monday, September 12, 2005 2:33:39 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Underground.... As
https://www.metastock.com/Customer/Resources/TASC/Article.aspx?c=3&p=&Id=61 wrote:
David Sepiashvili's article "Trend Quality Indicator" introduces two new indicators; Q-indicator and B-indictor. Both can be added to MetaStock with the formulas listed below
with the formulas extracted from the April 2004 TASC and
http://www.alticom.com/finance/rr-tbi/index.html wrote:
BQ Indicator [code:1:460caf9143]The Trend-Noise Balance Indicator (BQ-Indicator) relates trend to noise in a banded oscillator format. If the Q-Indicator fluctuates around a zero line with no upper or lower limits, BQ-Indicator is bounded with (+1) and (-1) levels. Its zero line suggests that the trend and noise are in equilibrium (trend is equal to noise). In the range of the indicator values from (-0.5) to (+0.5) the trend is buried under the noise, and it is an indication of a non-trending phase. The readings below (-0.8) or above (+0.8) levels can be interpreted as strong downward or upward trending benchmarks, correspondingly. An advantage of the BQ-Indicator over the Q-Indicator is that it better identifies overbought and oversold conditions. More information about both indicators and their implementation for various trading platforms you can find in the article “The Trend-Quality Indicator (Q-Indicator)” by David Sepiashvili, published in Technical Analysis of Stocks & Commodities, April 2004.[/code:1:460caf9143]
was published by the same person in the same issue, I would strongly suggest the B and Q indicators as provided in the Oct 2004 MSTT are the codes you are looking for. But then again.... wabbit :D
wabbit  
#11 Posted : Wednesday, January 11, 2006 1:46:08 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Reading again the definition from alticom.com about the BQ-indicator, I get the sense (now) that it is just a pseudo-normalised Q-indicator?? BQ could stand for Bounded Q-Indicator? If this is the case, then using Roy's latest PREV free indicator, and normalising the output (using one of the many possible ways, but without hindsight) I end up with something like: {Q Indicator NP} {Trend Quality} m:=Input("% Scalar trend period",2,25,4); n:=Input("% Scalar noise period",2,500,250); cf:=Input("% Scalar correction factor",1,250,2); p1:=Input("First moving average periods",1,200,7); p2:=Input("Second moving average periods",1,200,15); pds:=Mov(C,p1,E)>Mov(C,p2,E); pds:=pds<>ValueWhen(2,1,pds); dc:=ROC(C,1,$); init:=Cum(pds>-1)=1; cdc:=Cum(dc); cpc:=cdc-ValueWhen(1,init+pds,cdc); trend:=ExtFml("Forum.MOV",cpc,If(pds,1,2*m-1),E); trend:=If(Sum(trend,2)=Sum(trend,2),trend,trend); {adds an invalid bar} dt:=cpc-trend; n:=LastValue(Min(Cum(1)-2*p2,n)); {adjusts "n" if not enough bars are loaded} noise:=cf*Sqrt(Mov(dt*dt,n,S)); x:=trend/noise; bq:=2*(x-Lowest(x))/(Highest(x)-Lowest(x)+0.0001)-1; l1:=0.8; l2:=0.5; 0; {colour me blue} l1;l2; {colour us light gray} -l1;-l2; {colour us light gray} bq; {colour me red} Maybe this is what the original discussion was about???? :wacko: wabbit :D
StorkBite  
#12 Posted : Wednesday, January 11, 2006 4:19:40 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)
Thanks a lot for the update, Wabbit.:D
kingsley29  
#13 Posted : Wednesday, January 18, 2006 1:56:38 AM(UTC)
kingsley29

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/30/2005(UTC)
Posts: 14

Have anyone try the new B and Q indicators from Roy on Intraday? I used the old Equis B and Q indicators (suppose to be in errors) but they response in realtime better than the B and Q indicators (suppose to be corrected) from Roy. Am I missing something? Please explain what are the important levels that I should look or show a sample chart. Thank you
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.