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

[GT] Re: RE: Re: BuySellArrows.pm Trigger Prices



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