QTusers Forum
February 11, 2012, 06:38:58 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the QuoteTracker Users Discussion Forum
Latest QuoteTracker Version is 3.9.7
Released on April 13th 2010

 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Paint Bar Formula Help - Simple SMA alert  (Read 806 times)
caligirl626
Just Visiting

Posts: 3


« on: January 28, 2010, 12:24:27 AM »

Super newbie when it comes to programming, but experienced quotetracker user here. Can some one point me to a site where I can learn how to program paintbars / alerts from the beginning? The QT help is nice, but too brief and a bit complex for me.  Otherwise can someone out there come up with formula for a simple set of rules I’ve come up with? I can either post them here or would prefer someone to email me. 

What I want to do is basically set up a buy/long alert (audible would be neat or different colored candlestick) to signal when the candlestick closes above the SMA20 on a 1 min chart with the following condtions: MACD(6,15,4) must have just turned green within the past 5 bars/minutes, AND the CCI(20,6) must have broken the signal (fast line crossed above slow line) within the past 5 bars/minutes, AND the SST(14,7) fast line must have crossed above slow line within the past 5 bars/minutes.
There are a few more rules to add but that's the jist of it.  Any help would be greatly appreciated. 
~Tina
Logged
Gazilla
Hero Member
*****
Posts: 117



« Reply #1 on: February 03, 2010, 04:36:41 PM »

Pretty sure they all can be done from the Basic Editor...
Logged
caligirl626
Just Visiting

Posts: 3


« Reply #2 on: February 03, 2010, 09:46:15 PM »

Thanks but I was hoping someone could guide me through the steps.  I hope I'm asking in the right place because I haven't received any responses yet. Thanks ahead to anyone who can lend me a hand.  ~Tina
Logged
Gazilla
Hero Member
*****
Posts: 117



« Reply #3 on: February 04, 2010, 01:09:03 AM »

Thanks but I was hoping someone could guide me through the steps.  I hope I'm asking in the right place because I haven't received any responses yet. Thanks ahead to anyone who can lend me a hand.  ~Tina

Hey Hi caligirl626,
Yeah its like that around here Roll Eyes

There are a couple of ways to go about what you are trying to achieve, and the best way is the most complicated and I won't attempt that, but I'll run up the basic steps then do a complete 'all in one' Paintbar with (brackets) and short-cut coding, my skills are limited beyond the basics tho.

...the Basic Editor is straight forward and the GUI is good for compiling 'off the shelf' paint bars.

The trick is to identify what you're wanting to signal for; all combined indicators meet the signal requirements? or separate indicators meet their signal requirements? I'm assuming from your post that it's an all must meet signal situation...So you will be making Rules within one Paintbar ultimately.

First Up select a stock symbol and right click on it, and "Open Intra Day chart". Then right click the chart and set its "Frequency" to 1 minute. Save the chart As a Template ...name it after me if you like... Grin

Then right click the chart select "Select Indicators" then select the Paintbar insert it top or bottom...Also pick all the indicators you desire...SMA, MACD, CCI, Slow Stochastic...

Edit the Paintbar and Add New...Name it after me if you like... Grin

Standard math expressions:  +, -, *, /, ^, MOD and  DIV operators.

Logical operators:  AND, OR, NOT so that you can use two or more expressions in one rule.

Hint: the indicators work by naming conventions:
Indicator.Main or Indicator.Signal

So a MACD is expressed like this:
MACD.Main, MACD.Signal and MACD.Histogram

Indicator numerical settings are defined by:
Indicator(x).Main and Indicator(x).Signal

Sometimes you will need to identify the individual Indicator where you have two of the same Indicators but different numerical settings:

This refers to the first indicator in the list:
MACD.Main or MACD.Signal

and the second as unique:
MACD(6).Main or MACD(6).Signal

Attempt to make one indicator Paintaber at a time, until you are comfortable with how the Basic Editor works.

Once you have played around with the Basic Editor you'll work it all out yourself...then go into the Advanced Editor to compile a bunch of rules from what you have learnt so far.
The Advanced Editor is where you start defining aspects of the indicator:

Back bars are expressed as:
Indicator(x).Main[X]
MACD(6).Main[1] or MACD(6).Signal[1]
or
MACD(6).Histogram[1] >=0
MACD(6).Histogram >=MACD(6).Histogram[1]

And a Main crossing its Signal from under like this:
if MACD(6).Main>=MACD(6).Signal and MACD(6).Main[1]<=MACD(6).Signal[1]

you can Cut Copy Paste in the Advanced Editor also...
Then post what you have up in the forum.

Feel free to PM me if you need more help.
Don't forget to save the chart.

Best of luck  Smiley
« Last Edit: February 13, 2010, 06:14:44 PM by Gazilla » Logged
caligirl626
Just Visiting

Posts: 3


« Reply #4 on: February 04, 2010, 10:39:04 PM »

Gazilla! thank you for the help, that's the kind of response I was looking for.  Smiley
I'm trying to pm you but can't. I'm also unable to see you profile. Could you email me to get in touch?  ~Tina
Logged
Gazilla
Hero Member
*****
Posts: 117



« Reply #5 on: February 11, 2010, 04:36:23 AM »

Once having mastered the basic ways of using PaintBars, the following are available (extract from QuoteTracker Help file):

In addition to all that is available using the Simple method, the following may be used:
Functions: LOG(X), MAX(X,Y), MIN(X,Y), ABS(X), TRUNC(X) and ROUND(X).
MAX and MIN use 2 variables separated by commas. MAX will return the greater of the two values and MIN, the lesser of the two values.
ABS returns the absolute (unsigned) value of an expression/variable.
TRUNC returns the whole number (truncated decimals) of a value. ROUND returns the rounded value.
Examples:
if MAX(ABS(Bar Close-EMA),ABS(Bar Close-SMA))>0.02*Bar Close set color to red
It is similar to using:
if ABS(Bar Close-EMA)>0.02*Bar Close OR ABS(Bar Close-SMA)>0.02*Bar Close set color to red
and translates to: If the price diverges more than 2% from either EMA or SMA, the color is set to red.
If Bar Close is 15.75 then TRUNC(Bar Close) is 15.00 and ROUND(Bar Close) is 16.00.


Check QuoteTrackers Help >Index & search for 'Indicator'.
« Last Edit: February 24, 2010, 06:52:02 PM by Gazilla » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!