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

Notification

Icon
Error

Options
Go to last post Go to first unread
tradeninvest  
#1 Posted : Wednesday, July 13, 2016 5:56:29 PM(UTC)
tradeninvest

Rank: Newbie

Groups: Registered Users, Subscribers
Joined: 7/13/2016(UTC)
Posts: 8

Hi, I want to create an expert/exploration in a Monthly time frame wherein I want to study how certain parameters are met in the first 5 - 7 days of the month and the rest are then dependent on how the opening was in the said period. Eg if for me if say $100 is important and and the low opens above that in the first 5 days of the month I will approach with a certain strategy day 6 onwards. If the low is lower than $100 then i will approach with a different strategy. How do I make an expert with these criteria?? Thanks for your time and support. Best Regards.
tradeninvest  
#2 Posted : Wednesday, July 13, 2016 5:57:41 PM(UTC)
tradeninvest

Rank: Newbie

Groups: Registered Users, Subscribers
Joined: 7/13/2016(UTC)
Posts: 8

p.s. This expert I want to paste in the Monthly Chart
MS Support  
#3 Posted : Thursday, July 14, 2016 9:42:03 PM(UTC)
MS Support

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)
Hi, In order to determine what happened in the first 5 days of the month you would need Daily data (or Intraday, potentially). You would not be able to determine Daily values from a Monthly chart. The MetaStock formula language operates off whatever the interval in the chart is. Typically you can take smaller time interval data and compress to larger time intervals formulaically, but you cannot take larger time intervals and determine lower time interval values. Beyond the above concern, you would typically need some sort of conditional (If/Then) logic in your formulas. MetaStock's formula language supports Date/Time functions such as DayOfMonth() so you can use these to determine if a security's price meets a certain criteria on specific days. Because securities do not trade on the same days every month, you would also likely need to make the formulas a bit more dynamic to determine the first 5 trading days each month. There are various ways you could likely do this, such as: X:=ROC(DayOfMonth(),1,$) < 0; Sum(X=0,5)=4 AND Sum(L > 100,5)=5 This is a very general explanation. You would then need to take the above and combine it with your other trading rules, such as: X:=ROC(DayOfMonth(),1,$) < 0; Y:=Sum(X=0,5)=4 AND Sum(L > 100,5)=5; If(Y,condition1,condition2) So in essence we use an If/Then/Else statement. You can get even more elaborate by nesting multiple IF statements. However, all of this is moot if you want to be able to get Daily values from a Monthly chart.
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.