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

Notification

Icon
Error

Options
Go to last post Go to first unread
Leverage  
#1 Posted : Thursday, February 5, 2015 4:23:41 PM(UTC)
Leverage

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 1/25/2010(UTC)
Posts: 44
Location: Rome, IT

Hi Traders,

I found this usefull formula:

MktStart:=Hour()<>Ref(Hour(),-1);
yestHi:= Ref(HighestSince(1,MktStart,H),-1);
yestLo:= Ref(LowestSince(1,MktStart,L),-1);
ValueWhen(1,MktStart,yestLo);
ValueWhen(1,MktStart,yestHi);

In an intraday RT chart, detect max and min every hour. In the next hour, if market don't realize new min(max), how can modify this code?

Thanks

P.S. I tried with If(), but every two hour change the same value

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.