Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/30/2009(UTC) Posts: 4
|
I would request some help here from someone who can code a Meta
stock exploration ( To find stocks which has either gained or lost more
than 5% in the last 10 bars (* 1 min Bars*)
I have worked on this coding but could not succeed. Please comment .
Thanks in Advance. My aim is to find this condition in stocks through exploration .
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
Off the top of my head I would try something like:
a1:=Ref(HHV(C,10),-1); a2:=((C-a1)/a1)*100; a3:=If((a2>5),1,0); a3
or maybe:
a1:=Ref(HHV(C,10),-1); a2:=Ref(HHV(C,10),-5); a3:=Ref(HHV(C,10),-10); b1:=((C-a1)/a1)*100; b2:=((C-a1)/a2)*100; b3:=((C-a1)/a3)*100; c1:=(b1>5)*(b2>5)*(b3>5); c1 to find where the price is actually consolidating and not just a blow off top.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/30/2009(UTC) Posts: 4
|
Hey 'john' thanks a lot for the effort and prompt reply but somehow I am not looking for consolidation breakout , I am simply looking for the price movement up or down (5%) which has occurred in 10 bars. I am sure it will be easier for you and you will come up with something. Thanks again [:)]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
I think you have to define your starting point. Is it the highest high over the last 10 days 5% from 10 days ago, etc. Then the calculation is straight forward.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/30/2009(UTC) Posts: 4
|
Hey 'john' considering I am looking for the price movement up or down (5%)from the highest in the last 15 bars..which exploration do I consider final..? Thanks again
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
Sounds like the code I posted above should point you in the correct direction:
a1:=Ref(HHV(C,10),-1); a2:=((C-a1)/a1)*100; a3:=If((a2>5),1,0); a3
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 6/30/2009(UTC) Posts: 4
|
Hey johnl seems as if it will work thanks again .. you have been of great help. Thanks again !!
|
|
|
|
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.