Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
kaushik1 wrote:Hello friends,
I am new user of metastocks. I am looking to write a bar value(close),Date since cross(mov(c,5,e),mov(c,13,e)).
also want to count a bar since cross(mov(c,5,e),mov(c,13,e)) to today's close...
please help me out,,
thanks in advance kaushik1 wrote:can you please make it for me..??
I want the closing price when mov(c,5,e) cross mov(c,13,e)
thanks dear kaushik1 wrote:oki
thanks .. i had done . but .. not able to plot a date....
so still doing exparimant
thanks Kaushik -- You need to get used to "thinking in MetaStock" -- there are some very flexible/powerful functions, you just need to carefully define exactly what you want to do. You will probably need just the "ValueWhen()" function, mainly. If you look it up in HELP, it shows: SYNTAX: valuewhen ( Nth, EXPRESSION, DATA ARRAY ) In your case, Nth would be the most recent occurance: 1. The EXPRESSION would be your condition, "cross(mov(c,5,e),mov(c,13,e))". The DATA ARRAY you asked for is the CLOSE. The other function you want is "BarsSince()". Use that with the EXPRESSION to get a count. You can use these functions in formulas for Indicators, then call that Indicator name in other places within MetaStock, like Charts, Explorations, Expert Commentary, Symbols, Highlights, etc,
|