bobc |
Gold User, Member, Platinum User, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Thursday, October 7, 2004 |
Sunday, June 23, 2013 5:16:30 PM |
3 [0.00% of all post / 0.00 posts per day] |
|
Bruce: Can you write a custom formula for the following:
ADJHIGH:=If(HIGH<=Ref(CLOSE,-1),Ref(CLOSE,-1),HIGH);
ADJLOW:=If(LOW>=Ref(CLOSE,-1),Ref(CLOSE,-1),LOW);
ADJRANGE:=ADJHIGH-ADJLOW;
DBI:=((CLOSE-ADJLOW)/ADJRANGE)*VOLUME*(CLOSE-ADJLOW);
DSI:=((ADJHIGH-CLOSE)/ADJRANGE)*VOLUME*(ADJHIGH-CLOSE);
OBDI:=DBI-DSI;
Mov(OBDI,20,E)
. It is written in MetaStock Language; but it's all math and shouldn't be too difficult. As for the abbreviations used, they are:
ADJHIGH = ADJUSTED HIGH, ADJLOW = ADJUSTED LOW, ADJRANGE = ADJUSTED RANGE, DBI = DAILY BUYING INTENSITY, DSI = DAILY SELLING INTENSITY, OBDI = ON BALANCE DAILY INTENSITY. Mov is a moving average. Ref refers to the past. Ref(Close,-1) refers to yesterday's close.
Thank you, Bobc
|
The following indicator was given to me in Metastock format. Can you convert it into a custom indicator for TC charts? ADJHIGH:=If(HIGH<=Ref(CLOSE,-1),Ref(CLOSE,-1),HIGH); ADJLOW:=If(LOW>=Ref(CLOSE,-1),Ref(CLOSE,-1),LOW); ADJRANGE:=ADJHIGH-ADJLOW; DBI:=((CLOSE-ADJLOW)/ADJRANGE)*VOLUME*(CLOSE-ADJLOW); DSI:=((ADJHIGH-CLOSE)/ADJRANGE)*VOLUME*(ADJHIGH-CLOSE); OBDI:=DBI-DSI; Mov(OBDI,20,E) It is written in MetaStock Language; but it's all math and shouldn't be too difficult. As for the abbreviations used, they are: ADJHIGH = ADJUSTED HIGH, ADJLOW = ADJUSTED LOW, ADJRANGE = ADJUSTED RANGE, DBI = DAILY BUYING INTENSITY, DSI = DAILY SELLING INTENSITY, OBDI = ON BALANCE DAILY INTENSITY. Mov is a moving average. Ref refers to the past. Ref(Close,-1) refers to yesterday's close.
Thank you for your help. Sir Bob
|
When I create a pfc ABS(C-O)/(H-L)*100 I get an error message. It is a copy of the example given in the training video for candle stick shadow. Bobc
|
|