Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2010(UTC) Posts: 18
|
Hello. I have a custom indicator called mean. (h+l+c)/3. I have applied bollinger bands to this custom indicator. Now I would like to have explorer show me all stocks where my indicator has closed below the lower BB.
I am getting better at coding but Im struggling with this one. I can obviously get the indicator in explorer but Im not sure how to get the BB to apply to my indicator.
Is there an easy way to copy and paste the formula from the chart?
Any tips or hints would be greatly appreciated. thanks Jim
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2010(UTC) Posts: 18
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/26/2009(UTC) Posts: 76 Location: Toronto, Canada
|
Hi Jim,
I would suggest that you create an indicator first so you would be able to use it anywhere (e.g. exlorer, system tester). Input in your indicator builder:
{NAME:BBand crossing)
pds:= Input("MA periods",1,9999,20);
dev:= Input("Standard Deviations",1,10,2);
x:= (H+L+C)/3;
y:=BBandBot(x,pds,s,dev);
cross(y,x);
Now in your explorer write:
Filter: FML("Bband crossing")=1
This should achieve the results that you are looking for.
VT
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2010(UTC) Posts: 18
|
Thanks! I appreciate the help. Lets see if I can make this work. Thanks , Jim
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Jim
(H+L+C)/3 is also Typical Price and can be written as Typ(). This is not to be confused with (H+L)/2 which is Mean Price and written as MP(). Of course there's also (H+L+2*C)/4 which is Weighted Close and written as WC(). Thta's today's shot of trivia.
Roy
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2010(UTC) Posts: 18
|
Thats great to know. There is alot to learn but just seeing some examples of how its done goes a long way.
Btw I managed to get the formula working that v trader gave me. Thanks guys!
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2010(UTC) Posts: 18
|
Ive got the formula into the indicator builder and it works great. However, when I run a scan with the explorer it comes back empty. There are stocks that meet the criteria today but it is not picking them up. I tried to load 100 days even though it said the scan needs only 27. Still nothing out of 1400 some stocks. Any thoughts? Thanks guys. Jim
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/26/2009(UTC) Posts: 76 Location: Toronto, Canada
|
Hey. Are you sure you have this code in the FILTER tab of the exploration:
FML("BBand Crossing")=1
{Bband crossing is the name of the indicator created with the indicator builder, make sure you have the right name}
I just tried it out and it works fine for me. I scanned the NASDAQ market for March 8, 2010 and got quite a few positive results such as BYG, EFZ,.... I have my option set to load 2500 records but I don't think that would be an issue if you have less for this particular exploration. Makes sure you have everything in place and see what happens again. Hope it works.
VT
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 2/17/2010(UTC) Posts: 18
|
Thanks again for your help. I copy and pasted the formula again and it works great now. Thanks alot for your help v.trader!
|
|
|
|
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.