Discussions
»
Product and Service Development
»
Formula Assistance
»
60 day New High New Low on Double Volume binary Indicator
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
This indicator plots a 1 when a stock makes a New 60 day High on Double Volume and -1 when it makes a new 60 day low on double volume
nh:=H>Ref(HHV(H,60),-1);
nl:=L<Ref(LLV(L,60),-1);
DV:=V>Ref(V,-1)*2;
If(nh AND DV,1,If(nl AND DV,-1,0))
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
nice....
same function - different code:
NH:=H>Ref(HHV(H,60),-1);
NL:=L<Ref(LLV(L,60),-1);
DV:=V>Ref(V,-1)*2;
DV*(NH-NL)
I find this 'nicer' code than a whole pile of nested if() statements.
wabbit :D
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
60 day New High New Low on Double Volume binary Indicator
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.