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

Notification

Icon
Error

Options
Go to last post Go to first unread
louie7117  
#1 Posted : Sunday, July 18, 2021 4:42:35 PM(UTC)
louie7117

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 11/11/2020(UTC)
Posts: 3
Location: NY

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)

Hello, how would I write the exploration for looking up today being a 20 trading day low?  Appreciate your help.

MS Support  
#2 Posted : Monday, July 19, 2021 4:13:49 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,722

Thanks: 62 times
Was thanked: 145 time(s) in 141 post(s)
Originally Posted by: louie7117 Go to Quoted Post

Hello, how would I write the exploration for looking up today being a 20 trading day low?  Appreciate your help.

You can use the formula in the Filter if you want it to screen out instruments that do not meet the criteria, or you can enter the formula into a Column that will show a 1 when the condition is true and a 0 when not true.

Code:
L <= Ref(LLV(L,20),-1)

You can also use the current bar's Close and compare to previous 20 bar lows if you prefer:

Code:
C <= Ref(LLV(L,20),-1)

Users browsing this topic
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.