Discussions
»
Product and Service Development
»
Formula Assistance
»
Need Help Identifying Previous Day Low for 15-min Charts
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.
|
|
|
|
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)
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Need Help Identifying Previous Day Low for 15-min Charts
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.