Rank: Newbie
Groups: Registered, Registered Users Joined: 2/24/2014(UTC) Posts: 3
|
Hi,
It's my first time here and I searched but don't found. I have a system and would like to create a SystemTester that analyze the model in a specific period of the day on intraday chart. e. g. analyzing 9:00am to 2:00pm. Is this possible?
grateful.
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,955
Thanks: 91 times Was thanked: 155 time(s) in 150 post(s)
|
There are Hour() and Minute() functions that you can use as long as you have Intraday data.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 2/24/2014(UTC) Posts: 3
|
Thanks for the fast feedback. This is correct?
buy: cross(mov(c,9,e) , mov(c,21,s)); hour()<=14 and minute()=30
sell: cross(mov(c,21,s) , mov(c,9,e)); hour()<=14 and minute()=30
I am using this formula in 15min chart. Without the Hour() are made around 300 operations, with the Hour() over 1000 operations and operations that do not exist are made.
grateful
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,955
Thanks: 91 times Was thanked: 155 time(s) in 150 post(s)
|
fjometa wrote:Thanks for the fast feedback. This is correct?
buy: cross(mov(c,9,e) , mov(c,21,s)); hour()<=14 and minute()=30
sell: cross(mov(c,21,s) , mov(c,9,e)); hour()<=14 and minute()=30
I am using this formula in 15min chart. Without the Hour() are made around 300 operations, with the Hour() over 1000 operations and operations that do not exist are made.
grateful
You would want to include them as a single condition with boolean AND between the criteria instead of 2 distinct formula lines.
buy: cross(mov(c,9,e) , mov(c,21,s)) AND hour()<=14 and minute()=30;
sell: cross(mov(c,21,s) , mov(c,9,e)) AND hour()<=14 and minute()=30;
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 2/24/2014(UTC) Posts: 3
|
I can also use as a condition.
if(hour()<=14 and minute()=30, cross(mov(c,9,e) , mov(c,21,s)),0)
thank you very much
|
|
|
|
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.