Print Page | Close Window

Setup & trigger ?

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=545
Printed Date: 24 Apr 2025 at 12:53am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Setup & trigger ?
Posted By: brentjedi
Subject: Setup & trigger ?
Date 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



Replies:
Posted By: maximo
Date 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;

 



Posted By: brentjedi
Date 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


Posted By: brentjedi
Date Posted: 25 Feb 2009 at 3:29am



-------------
Trading is art of self


Posted By: maximo
Date 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;



Posted By: brentjedi
Date Posted: 25 Feb 2009 at 4:39pm
Thanks Maximo but cond1 has not been defined? thus she no workPinch


-------------
Trading is art of self


Posted By: maximo
Date Posted: 25 Feb 2009 at 6:03pm
sig = cond1
 
 



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk