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

Re: [amibroker] Re: Plotting Arrows



PureBytes Links

Trading Reference Links

Sidhartha,

This is what I use:

//================================================================
// Return the Y axis value ($) for a number of pixels
// this gives a factor for plot offsets for stacking shapes which are  
pixel based graphics
function PixelsToYAxis(pixels)
{
	return pixels*(Status("axismaxy")-Status("axisminy"))/ 
Status("pxheight");
}

BR,
Dennis

On Jan 1, 2009, at 10:07 AM, sidhartha70 wrote:

> Dennis,
>
> Thanks. Can I ask how you do that...? Do you have an example piece of
> code...?
>
> Many Thanks & Happy New Year!
>
> --- In amibroker@xxxxxxxxxxxxxxx, Dennis Brown <see3d@xxx> wrote:
>>
>> Sidhartha,
>>
>> What I do is calculate price/pixel then offset by a number of pixels
>> (price equivalent).  Since the shapes are based on pixels, this works
>> well.
>>
>> BR,
>> Dennis
>>
>> On Dec 31, 2008, at 9:18 AM, sidhartha70 wrote:
>>
>>> Hi All,
>>>
>>> I'm plotting a series of buy/sell indicators via the PlotShapes()
>>> function.
>>>
>>> Sometimes I get multiple signals on the same bar, and I've been  
>>> trying
>>> to displace the arrows so that upon multiple signals they 'stack'  
>>> one
>>> above the other... so far I've been using something along the  
>>> lines of
>>> the following,
>>>
>>> Displace_Plot = IIf(PatternA_Plot, TickSize * 10, 0);
>>> PlotShapes( PatternB_Plot * shapeSmallDownTriangle, colorGold, 0,  
>>> H +
>>> Displace_Plot );
>>>
>>> This does kinda work, but depending on the zoom used by AB to scale
>>> the current price data, the arrows stacked one on top of the other  
>>> can
>>> be just right or have a huge gap between them (sometimes so big the
>>> stacked arrow cannot even be seen on the screen).
>>>
>>> Is there a way of getting round this issue...? Any other ideas as to
>>> how to effectively stack multiple signals that can be seen  
>>> regardless
>>> of the current scaling...?
>>>
>>> Many Thanks
>>>
>>>
>>> ------------------------------------
>>>
>>> **** IMPORTANT ****
>>> This group is for the discussion between users only.
>>> This is *NOT* technical support channel.
>>>
>>> *********************
>>> TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail
>>> directly to
>>> SUPPORT {at} amibroker.com
>>> *********************
>>>
>>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>>> http://www.amibroker.com/devlog/
>>>
>>> For other support material please check also:
>>> http://www.amibroker.com/support.html
>>>
>>> *********************************
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>
>
>
>
> ------------------------------------
>
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> *********************
> TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail  
> directly to
> SUPPORT {at} amibroker.com
> *********************
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> *********************************
> Yahoo! Groups Links
>
>
>


------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/