logo
  • Home
  • Discussions
  • Files
  • Register
  • Login
Welcome Guest! To enable all features please Login or Register.
  • Forum
  • Active Topics
  • Search
  • Help
  • Login
  • Register
  Search Search

Notification

Icon
Error

OK


Discussions  »  Product and Service Development  »  Formula Assistance  »  Trending market vs mean reversion market
Trending market vs mean reversion market
Options
  • Email this topic Email this topic
  • Watch this topic Watch this topic
  • Print this topic Print this topic
  • » Normal
  • Threaded
Go to last post Go to first unread
Previous Topic Next Topic
Tjarko  
#1 Posted : Sunday, August 9, 2015 8:37:17 PM(UTC)
Tjarko

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/28/2007(UTC)
Posts: 5

I read this very interesting blog:

http://www.priceactionlab.com/Blog/2015/08/the-day-momentum-died/

It shows a method for indicating the type of market: trending or mean reversion. I wonder if it is possible to make a custom indicator for Metastock of this idea. The calculation is:

If close of today > close of yesterday then buy at the close
If close of today < close of yesterday then short at the close

It looks somewhat like the On Balance Volume only with price and not volume. Is anyone able to code this? It's way beyond my coding skills...

Gr,

Tjarko

Back to top
  • User Profile
  • View All Posts by User
  • View Thanks

Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.

Back to top  
MS Support  
#2 Posted : Monday, August 10, 2015 2:32:14 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,974

Thanks: 95 times
Was thanked: 158 time(s) in 153 post(s)
Hello, If I understand you correctly, that would just require using the RoC (Rate of Change) function. Depending on where you want to use the formula would depend on how you write it, but the basic formulas would be: {Close Up} RoC(C,1,$) > 0 {Close Dn} RoC(C,1,$) < 0 That said if you were to use this as an expert advisor, you would see a buy or sell arrow over every price bar. If you only want a signal when you get an opposing direction signal the formulas would get a little more complex. However, these formulas should also work in the system tester under the typical system tester settings (limiting the # of simultaneous positions to 1).
Back to top
  • User Profile
  • View All Posts by User
  • View Thanks
Tjarko  
#3 Posted : Wednesday, August 12, 2015 7:52:38 PM(UTC)
Tjarko

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/28/2007(UTC)
Posts: 5

Hi MS,

The ROC is the start indeed. The trouble for me was combining longs and shorts. The System Tester is the answer to that one. Should have thought about it myself...

Thanks,

Tjarko

Back to top
  • User Profile
  • View All Posts by User
  • View Thanks
Users browsing this topic
Guest (Hidden)
Discussions  »  Product and Service Development  »  Formula Assistance  »  Trending market vs mean reversion market
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.

Powered by YAF.NET | YAF.NET © 2003-2025, Yet Another Forum.NET
  • Terms
  • Privacy Statement
  •  
© Copyright 2025 MetaStock. All rights reserved.