Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 3/9/2010(UTC) Posts: 3 Location: bangkok
|
Hi im new totally new to metastock and am totally lost with the formula stuff! Could someone please be kind enough to tell me the formula for this set of criteria?
if someone could let me know how to enter this into metastock i would be very grateful!
thanks :)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/26/2009(UTC) Posts: 76 Location: Toronto, Canada
|
Hi,
Here's the code which should achieve your objective:
{NAME}
x:= C>Ref(C,-1);
y:= Cross(C,Mov(C,10,E)) OR C>= .97*Mov(C,10,E);
z:=Cross(RSI(7),RSI(14));
a:= 2>=BarsSince(z);
b:= V>=1.2*Mov(V,21,E);
If(x AND y AND a AND b,1,0)
//It would plot a 1 whenever everything is true and it would plot a 0 otherwise. Message if anything looks wrong or if you have any further questions.Cheers,
VT
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 3/9/2010(UTC) Posts: 3 Location: bangkok
|
Hi VT,
Thanks so much for replying and writing that code for me - do i simply just paste it all into the formula box (eg column "a") or do i need to separate each line and put each into "a" "b" "c" "d" "filter" .... etc? Apologies if this is a dumb question, still trying to get my head around it all :(
thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/26/2009(UTC) Posts: 76 Location: Toronto, Canada
|
No worries. Post the formula that I previously wrote into your INDICATOR BUILDER and give it a name for example "Superb". Then go into the Explorer tool and create a new explorer. In the FILTER tab of the explorer write:
FML("Superb")=1
Also make sure that you click on the options tab and set it to "Load 500 Records" so everything should be fine. This should make it work.
If you want to see the individual signals on any individual chart, you could just find the created indicator and drag it on to a new window and whenever it displays 1 all of the condition are met. Good luck.
VT
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 3/9/2010(UTC) Posts: 3 Location: bangkok
|
Thankyou so much!!! It works great, just what i was after :)
thanks again :)
|
|
|
|
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.