Page 1 of 1

Weekly Bongo

Posted: Fri Nov 16, 2012 4:12 am
by OzAsh
What do I have to change to the following scan to make it apply to the weekly Bongo. I see a scan for a Bongo CHANGE but I want to use the Bongo Weekly as a filter - either up or down with my other criteria

cond1: "Bongo()[PlotDn]";
event: cond1

Ash

Re: Weekly Bongo

Posted: Wed Jan 23, 2013 8:20 am
by Chris White
When you refer to another script from your current script you can specify the cycle period that you want the other script to use.

For example, there is an existing script called Bongo which has an output line called BongoDn. Normally when you add that script to a chart the cycle period automatically changes to reflect whatever chart period you are looking at (daily, weekly, etc).

However if you want a script that is specifically set to weekly so that whenever this new script is added to a chart it always uses the weekly cycle, you can call the original Bongo script with a 'Cycle' extension such as #DAY1, #WEEK1 etc. The '1' here refers to how many days or weeks to use as the cycle period.

So, for example I could write the following script which when added to a chart shows an event whenever the Bongo Daily is down and the Bongo Weekly is down:

Code: Select all

DailyDn: "Bongo[BongoDn]#DAY1";
WeeklyDn: "Bongo[BongoDn]#WEEK1";
Event: DailyDn & WeeklyDn;
Chris.