BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: Setup & trigger ?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Setup & trigger ?

 Post Reply Post Reply
Author
Message / View First Unread Post
brentjedi View Drop Down
Regular
Regular
Avatar

Joined: 13 Dec 2007
Posts: 34
Post Options Post Options   Quote brentjedi Quote  Post ReplyReply Direct Link To This Post Topic: Setup & trigger ?
    Posted: 24 Feb 2009 at 1:19am
Hi guys

I need some help in how to program a setup and then trigger with BS.

The logic is thus setup - when a williams % is over sold  the previous higher bars high if crossed by any future bars creates a trigger. The ideal is to have a scan that would find these triggers and enter the next day.

So there are two conditions 1. Oversold 2. Close greater than prev bar to oversold bar.
The tricky part is that the oversold condition doesnt matter after the original oversold bar.

Hey I got the chart on !!! lol




Trading is art of self
Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 24 Feb 2009 at 7:53pm

Brent,

Here's the indicator with signals using those 2 conditions.  I included an overlay of the williams oscillator so we can see how it's working with the oversold line.

 
{ Williams Signal }

period := input("Williams period",20);

will := Formula("Willr",period);

[color = blue]

sig:=If(C < ref(C,-1),1,0) * If(will < -80,50,0) -50;

[linestyle=dotted; color=black]

-20;-80;

[linestyle=solid; color=lime green; width=2]

sig;

[color=blue; width=1]

will;

 



Edited by maximo - 24 Feb 2009 at 8:02pm
Back to Top
brentjedi View Drop Down
Regular
Regular
Avatar

Joined: 13 Dec 2007
Posts: 34
Post Options Post Options   Quote brentjedi Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 2009 at 3:27am
Thanks Maxmio for the visual way of combining the two.
Posted is a better explanation of what I am looking to achieve. Condition met which makes the previous bar the trigger bar and when that high is broken bullcharts will then flag it.
So I 'll I have to do is run a daily scan to find it. Otherwise I have to monitor a watchlist which I hate. This way I can set the limit orders and forget them.

Cheers
Brentjedi

Trading is art of self
Back to Top
brentjedi View Drop Down
Regular
Regular
Avatar

Joined: 13 Dec 2007
Posts: 34
Post Options Post Options   Quote brentjedi Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 2009 at 3:29am

Trading is art of self
Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 2009 at 2:49pm
Cool,
 
Just add this to the end of the code to produce an alert marker on which you can do a scan.
 
 

[linestyle=marker; marker=type1; name="HH2"]

HH2:=If(sig<0 and ref(sig,-1)=0 and H>ref(HHV(H,2),-1),1,0);

HH2;



Edited by maximo - 25 Feb 2009 at 2:50pm
Back to Top
brentjedi View Drop Down
Regular
Regular
Avatar

Joined: 13 Dec 2007
Posts: 34
Post Options Post Options   Quote brentjedi Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 2009 at 4:39pm
Thanks Maximo but cond1 has not been defined? thus she no workPinch
Trading is art of self
Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 25 Feb 2009 at 6:03pm
sig = cond1
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz