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

[GT] Re: BuySellArrows.pm Trigger Prices



Chia-liang Kao wrote:
2009/11/12 Jon Edwards <fornews
AT
hotmail.com>:

If you have a S:Generic-based trigger, the signal is always determined
at the end of the bar, and drawing the arrow near the CLOSE of the bar
should be close enough. What you describe might be more interesting
if you have a ChannelBreakout based trigger, where the triggering
price might not be the end of the bar, and to show this on the chart
you'll need to modify BuySellArrow to accept another price data source
and render the arrows accordingly, which is slightly complicated.
(this answers (2)

That's exactly what I have in mind to do (e.g. BuySellPricesArrows.pm )
Where I'm struggling is how to pass this other price data source. Digging
through
the code, namely CrossOverUp.pm where the decision is made,  it seems I
would
want 'calc' but a couple of attempts at doing that have not been successful.
Any suggestions or examples I can look at for help ?



Actually, I forgot i did some refactoring on an unfinished branch...
see the topic/graphics-improvements branch on my github repo, in
particular the commit:

http://github.com/clkao/finance-geniustrader/commit/2aab2187c5a8f1468478d92411b0b928093fa603

Instead of using the bar high/low directly from prices, it makes the
buysellarrow object taking datasource for high/low (which actually
means sell/buy arrow positioning) for rendering the arrows.

Cheers,
CLK


CLK and jon

i evaluated the referenced changes clk made to BuySellArrows, but found the
changes to the api made it unusable with respect to the original version. in
addition i also dislike slipping in yet another otherwise unannounced perl
prerequisite (is it even necessary? meaning is there a way we could avoid
requiring these versions of min and max?). never the less i've been intending to
query clk to better explain how to use it and request that it be given a
different name.

within this thread jon provided the name so with the hacks i've made since and
just now are included in the newly christened graphic object BuySellPricesArrows.
i've left the keys used to control the colors unchanged, but don't object if
they are altered to be specifically for BuySellPricesArrows.

if someone can finish it (e.g update pod, correct usage examples, and provide
changes needed to drive it via graphic.pl and or backtest.pl) it could be another
useful graphic object ...


aloha

ras

Attachment: BuySellPricesArrows.pm
Description: Perl program