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

Notification

Icon
Error

Options
Go to last post Go to first unread
aaaaaaicq  
#1 Posted : Saturday, November 21, 2009 10:55:07 AM(UTC)
aaaaaaicq

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.  title= My aim is to find this condition in stocks through exploration .
UserPostedImage
johnl  
#2 Posted : Saturday, November 21, 2009 7:16:11 PM(UTC)
johnl

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.


aaaaaaicq  
#3 Posted : Sunday, November 22, 2009 1:12:36 AM(UTC)
aaaaaaicq

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 [:)]
johnl  
#4 Posted : Sunday, November 22, 2009 7:36:57 PM(UTC)
johnl

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.


aaaaaaicq  
#5 Posted : Monday, November 23, 2009 11:43:20 AM(UTC)
aaaaaaicq

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
johnl  
#6 Posted : Tuesday, November 24, 2009 7:08:36 PM(UTC)
johnl

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



aaaaaaicq  
#7 Posted : Saturday, November 28, 2009 8:11:49 AM(UTC)
aaaaaaicq

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.