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

Notification

Icon
Error

Options
Go to last post Go to first unread
dmitry  
#1 Posted : Sunday, December 6, 2009 9:35:46 AM(UTC)
dmitry

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 12/6/2009(UTC)
Posts: 2

Hello everyone!
Could somebody please assist me in coding my trading strategy test; I studied the manual, but it didn't help.

I cannot figure out how to identify and compare today's and yesterday's short-term lows of the day.
I would like to incorporate them into my strategy.

Namely, one of the conditions for my enter long signal will be when today's lowest low is equal or higher then yestarday's lowest low on a 15-min bars chart.

I tried using "trough" function, but don't know how to use it with DayOfWeek or LLV.

It should look something like this (and be useable for a 15-min chart):

Enter long:
if(lowest low of the previous day)<=(current lowest low of today)

Any help is highly appreciated, thanks.

Justin  
#2 Posted : Tuesday, December 8, 2009 1:14:54 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

You could try the following formula to see how it works:

ValueWhen(1,ROC(DayOfWeek(),1,$) <> 0,Ref(LowestSince(1,ROC(DayOfWeek(),1,$) <> 0,L),-1)) <= LowestSince(1,ROC(DayOfWeek(),1,$) <> 0,L)
dmitry  
#3 Posted : Thursday, December 10, 2009 11:38:46 PM(UTC)
dmitry

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 12/6/2009(UTC)
Posts: 2

Thank you, Justin, I'll try it and post if it worked out!
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.