[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Partial Paintbar Problem



PureBytes Links

Trading Reference Links

http://www.geocities.com/victorcuadra/

Jim Bronke
Phoenix, AZ



----- Original Message ----- 
From: "Sandy Pasdak" <spooshorter@xxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Wednesday, January 09, 2002 8:44 AM
Subject: Partial Paintbar Problem


: Hello List:
: 
: I have been working on a programming issue for a while
: now with no success even after searching the archives.
: I trade a combination of a few indicators intraday on
: the futures indexes and wanted to code paintbars as
: green for buy, red for sell, yellow for neutral. So
: far, so good.
: 
: Herein lies my problem: I want to have the paintbar
: only begin painting the bar at the trigger price, and
: beyond that to the extreme of the bar, i.e. high of
: bar if a buy, and low of bar if a sell. In addition, I
: want the following bars to remain completely painted
: as long as the signal has not gone back to neutral.
: 
: So, e.g., if say the ADX > 40 and ROC > 0, then it
: should paint the bar green, but only at the price
: where this combo occurred.  If the indicators
: therefore fall below the threshold for buy before the
: bar closes, it should turn neutral below that point,
: but I want it to leave the triggered price of the
: price bar still green and green all the way to the
: bar's high. Vice versa for sell signals, but instead
: colored red.  Any following bars where the conditions
: remain should be fully painted green from low to high
: on buys, and red on sells, unless the conditions are
: no longer valid, and upon that bar, the point at where
: it changes to neutral should be unpainted, etc.
: 
: The problems I have observed are as follows: My code
: originally was set to H and L for the paintbar
: values...changing this to C and H for buys only
: colored the actual close of that bar to the H, and
: also only from the C to H for all following bars where
: the indicators still signaled buy. Data is set to
: update every tick, as I cannot wait minutes before
: taking a signal. Bars paint either with all color H to
: L, or all neutral H to L, with no partial coloring on
: any...i.e., bars at signal points flick back and forth
: from either an entirely painted bar or an entirely
: neutral-colored bar.
: 
: An observation...I have seen code and observed
: realtime paintbars that do what I am describing, but
: these are triggered by indicators scaled to price,
: such as Keltner Channel bands or BB's...when price
: pierces the band, only that part paints. The
: indicators I am using have their own scale, so this
: would not work.
: 
: Any and all suggestions appreciated! Thanks in
: advance.
: 
: 
: