MS Formulae required

#2
Hi all,

irrespective of the posting date, i'd like to answer what all i can address in metastock formulae. perhaps this might be useful to some of you.

How to wirte a MS Formulae for the following:
When Today's high Crossing over the last week's high.

Thanks
here 'today' can be any day of the week. so we need to convert the chart periodicity to weekly for expert view and the formula for this is

Cross(H,Ref(H,-1))

you can keep this either in highlights or in symbols as you feel comfortable.

for exploration purpose, you need to use the same formula in 'filter' and in 'options' choose 'weekly' as periodicity.

regards

purush
 

umeshmandal

Well-Known Member
#5
hi rkkarnani,

thanks for your kind words. but i think the ms users size is very thin here. anyhow i am open to do my best.

regards

purush
Yes Purush ! Most MS users either migrated over to Amibroker or migrated to some other Forum ! :)
One can find quiet a few Amibroker experts here but for Metastock, you are a 'rare' enrty and that too after a long gap ! Thanks for being here.
 
#6
Hi Purush,

I saw your recent posts and u r really metastock expert. I got below noted explorer from the net but did not understand anything about this. Please tell how to utilize this to get best out of it.
================

Exploration notes {Place in MetaStock Explorer filter section.
Recommended to predict sustained swings, contributed
by from Rajat K. Bose.Further developed by Asish Roy
Chowdhury,Entry after 1st Dip

Col A: Close C {close}
Col B: (ADX(14) < LLV(PDI(14),25))
AND (ADX(14) < LLV(MDI(14), 25));
Col C: C1 := Ref( C , -1 ) ;
K := HHV( ( H - C1 ) OR ( L - C1 ) , 1 ) ;
L = C1 * 0.20;
R := ATR( 1 );
((ADX(14) < LLV(PDI(14),25))
AND (ADX(14) < LLV(MDI(14), 25)))/R*(K/L)*1000;
Filter C1 := Ref( C , -1 ) ;
K := HHV( ( H - C1 ) OR ( L - C1 ) , 1 ) ;
L = C1 * 0.20;
R := ATR( 1 );
((ADX(14) < LLV(PDI(14),25))AND
(ADX(14) < LLV(MDI(14), 25)))/R*(K/L)*1000 AND
V>100000 AND
C>100.00

Filter enabled Yes
Periodicity Weekly
Records required 50
 
#7
Hi Basudeo,

Hi Purush,

I saw your recent posts and u r really metastock expert. I got below noted explorer from the net but did not understand anything about this. Please tell how to utilize this to get best out of it.
================

Exploration notes {Place in MetaStock Explorer filter section.
Recommended to predict sustained swings, contributed
by from Rajat K. Bose.Further developed by Asish Roy
Chowdhury,Entry after 1st Dip

Col A: Close C {close}
Col B: (ADX(14) < LLV(PDI(14),25))
AND (ADX(14) < LLV(MDI(14), 25));
Col C: C1 := Ref( C , -1 ) ;
K := HHV( ( H - C1 ) OR ( L - C1 ) , 1 ) ;
L = C1 * 0.20;
R := ATR( 1 );
((ADX(14) < LLV(PDI(14),25))
AND (ADX(14) < LLV(MDI(14), 25)))/R*(K/L)*1000;
Filter C1 := Ref( C , -1 ) ;
K := HHV( ( H - C1 ) OR ( L - C1 ) , 1 ) ;
L = C1 * 0.20;
R := ATR( 1 );
((ADX(14) < LLV(PDI(14),25))AND
(ADX(14) < LLV(MDI(14), 25)))/R*(K/L)*1000 AND
V>100000 AND
C>100.00

Filter enabled Yes
Periodicity Weekly
Records required 50
I am sorry for coming back very late. Occupied in some assignment which demanded all my time this month. Almost done with it and now onwards I'll try to be regular.

Before answering your question, I'd like to know whether you are aware how the PDI, MDI, ADX are built...

If you don't know I have to start from there. It takes a longer post. If you are aware I can give a snapshot explanation. Please post from where I should start explaining.

Regards

Purush
 
#8
Hi Purush,

I require metastock code for following Amibroker code:

flip(aqrray1,array2)

(SYNTAX flip( ARRAY1, ARRAY2 )
RETURNS ARRAY
FUNCTION works as a flip/flop device or "latch" (electronic/electric engineers will know what I mean)
returns 1 from the first occurence of "true" signal in Array1
until a "true" occurs in Array2 which resets the state back to zero
unil next "true" is detected in Array1...
EXAMPLE buy = ExRem( buy, sell );
buy = Flip( buy, sell ); // this essentially reverts the process of ExRem - multiple signals are back again )
 

Similar threads