Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/1/2013(UTC) Posts: 9
|
Hello
I want to be able to run an exploration for the following
If <condition 1> and <condition 2> occur within last 5 days
AND
<condition 3> occurs yesterday/today
hope what I am getting at makes sense
Thanks for replying
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Originally Posted by: kosmicmisfit
Hello
I want to be able to run an exploration for the following
If <condition 1> and <condition 2> occur within last 5 days
AND
<condition 3> occurs yesterday/today
hope what I am getting at makes sense
Thanks for replying
The basic premise would be:
<Condition3> AND Alert(<Condition1>,5) AND Alert(<Condition2>,5)
For example:
Cross(MACD(),Mov(MACD(),9,E)) AND Alert(RSI(14) > 70,5) AND Alert(Stoch(5,3) > 80,5)
This formula would look for MACD() crossing above it's signal line today, while also looking for RSI above 70 and Stoch above 80 in the last 5 days.
You may want to check out the Formula Primer which should help familiarize you with some of the concepts in the MetaStock formula language:
https://www.metastock.com/customer/resources/formulas/primer.aspx Edited by user Wednesday, November 26, 2014 8:16:16 PM(UTC)
| Reason: Not specified
|
|
|
|
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.