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

Notification

Icon
Error

Options
Go to last post Go to first unread
SAINI9466637986  
#1 Posted : Monday, September 21, 2020 5:10:46 PM(UTC)
SAINI9466637986

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 7/10/2019(UTC)
Posts: 2
Location: HISAR

please tell  me how to write the formula for today bar is between the previous day high and low

MS Support  
#2 Posted : Tuesday, September 22, 2020 2:16:47 PM(UTC)
MS Support

Rank: Advanced Member

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

Thanks: 55 times
Was thanked: 134 time(s) in 130 post(s)
Originally Posted by: SAINI9466637986 Go to Quoted Post

please tell  me how to write the formula for today bar is between the previous day high and low

Basically you just need to compare data arrays (High/Low) using the Ref function. In this case you want today's high to be less than yesterday's high and today's low to be greater than yesterday's low:

Code:
H < Ref(H,-1) AND L > Ref(L,-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.