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

Notification

Icon
Error

Options
Go to last post Go to first unread
GameTime  
#1 Posted : Sunday, November 13, 2011 5:14:51 AM(UTC)
GameTime

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 1/22/2011(UTC)
Posts: 34

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi everyone,

I have been successfully using the security function to make reference to other charts to help identify the direction of the Broad Market, for example:

Security("ONLINE:STW.AX",Fml("Rahul Mohindar Osc (RMO)"))>0

However is there some code I can append to my above formula to make the Security function reference a Weekly chart instead of Daily chart?

I very much like using the RMO in a weekly time-frame, find it helps with smoothing and trend following.

jjstein  
#2 Posted : Sunday, November 13, 2011 10:32:32 AM(UTC)
jjstein

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)
Did you trying changing the Periodicity of the chart?

Either click the capital "D" at the bottom-right and change it to a "W", or double-click the X-Axis, click on the 2nd tab and pick Weekly.

GameTime  
#3 Posted : Sunday, November 13, 2011 2:33:57 PM(UTC)
GameTime

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 1/22/2011(UTC)
Posts: 34

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thankyou for the quick reply, I can manually switch the chart to weekly for sure, but that will not be a solution when running a back test of 200 + stocks using TradeSim. My trading system has rules that look at charts in both a daily timeframe and weekly timeframe with various indicators. As mentioned above I need a way to code this for automation Thanks
mstt  
#4 Posted : Sunday, November 13, 2011 3:03:30 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi GT

My Multi-Frame indicators (weekly periodicity in your case) can be used to pick up current or historical weekly values for most MS functions and/or custom formulas. Whether or not your custom formulas can be adapted to the Multi-Frame format is an unknown at this point but with 150 different functions / formulas already available there's a good chance that conversions are possible.

RMO is a proprietary product and for that reason it's not a potential prospect for conversion. Using live data could also be a problem, but not one that would necessarily rule out using Multi-Frame formulas. I'm prepared to work with you to see if your needs can be met by the Multi-Frame concept. However, since my MF tools are also proprietary I cannot do so via this forum. Please contact me by email if you wish to persue this avenue in looking for a solution your problem.

Roy

jjstein  
#5 Posted : Sunday, November 13, 2011 3:07:03 PM(UTC)
jjstein

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)
If you need specific help, you're gonna have to list the rules you're trying to code. Personally, I don't have the RMO, so someone else may have to step in here.

Without that, can't really offer much beyond the idea of simple substitution -- like adjusting the number of bars; ie: For a 10 bar weekly MA, use a 50-bar daily MA.

You might have a look at Roy Larsen's weekly and multi-timeframe indicators.

Also, there is some weekly stuff on Jose Silva's site.


GameTime  
#6 Posted : Sunday, November 13, 2011 6:20:10 PM(UTC)
GameTime

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 1/22/2011(UTC)
Posts: 34

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi Roy and Johnathan,

Thank you both for taking the time to reply to my question.

I’m rather shocked and disappointed that Metastock does not allow me to make reference to a weekly chart using the Security Function.
If I can manually change a charts periodicity to weekly, surly there is a Metastock formula to reference a weekly chart.

And for Johnathan here is a basic example of what I’m looking at doing:

I would like to trade stock “ABC” when it’s trading above RMO 0 using a daily chart,
BUT only when Stock XYZ is trading above RMO 0 using a weekly chart.


Fml("Rahul Mohindar Osc (RMO)")>0
AND
Security("ONLINE:XYZ.AX",Fml("Rahul Mohindar Osc (RMO)"))>0

As mentioned in an earlier post, I’ve just been switching the chart to weekly manually on Stock XYZ to see if it’s above RMO 0.

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.