PureBytes Links
Trading Reference Links
|
you are right about my last code Gary (skipping the
layer was an error) but the problem remains. I'll have another look at it
today. Using the syntax in a proper way still gives the problem so if I can't
figure it out I'll make a report for Tomasz,
thanks and regards, Ed
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Gary
A. Serkhoshian
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, May 15, 2004 2:26
AM
Subject: Re: [amibroker] Arrows bouncing
around
Ed,Take a look at the syntax of the PlotShapes
function.PlotShapes( shape, color, layer = 0, yposition =graph0,
offset = -12 ); In your PlotShapes below, you are skipping
definingthe layer. By doing so, you've taken the value youreally
want as yposition, and put it in the
layerposition.Wrong:PlotShapes(shapeUpArrow*Buy,colorWhite,BuyPrice);
Right:PlotShapes(shapeUpArrow*Buy,colorWhite,0, BuyPrice);
Fix that in your plotshapes, and everything will beokay.
Also, your offets can still be used, butexperiment with smaller
numbers.Regards,Gary--- ed <ed2000nl@xxxxxxx>
wrote:> Gary,> > thanks for your reply. > >
If I remove the "layer" and the "offset" I do not> have this problem
(see code below: if I use this> code I do not have the problem but in
this case> arrows will be plotted on top of eachother in some>
cases.....). So therefor I assume it is caused by> the offset en
layer keywords.> > As you suggested I replaced the offset = -100
with> offset = 0 but the problems remained. Using Layer => 0
offset =0 gives the problem also.> >
PlotShapes(shapeUpArrow*Buy,colorWhite,BuyPrice); >
PlotShapes(shapeDownArrow*Sell,colorYellow,> SellPrice); >
PlotShapes(shapeHollowDownArrow*Short,colorYellow,> ShortPrice);
> PlotShapes(shapeHollowUpArrow*Cover,colorWhite,> CoverPrice);
> > PlotShapes(shapeDigit1 * (phase_arr == 1),IIf(b_day>
== 1,colorYellow,colorWhite), (O+C)/2); > PlotShapes(shapeDigit2 *
(phase_arr ==> 2),colorWhite, (O+C)/2); > PlotShapes(shapeDigit3
* (phase_arr == 3),IIf(s_day> == 1,colorYellow,colorWhite), (O+C)/2);
> > I wanted to attach the charts to illustrate the>
problem. I exported a chart with the problem and one> without the
problem to 2 separate files. Then when I> checked the files I see the
problem in both although> on the screen it was visible in only one
..... NO I> have not been drinking .... yet ...... tried it>
again and same result ....> > nevermind ...... I will send a
report to Tomasz.> There is something not right here in my
opinion.> Like I said if I do not use "layer" and "offset" the>
problem is not there,> > rgds, Ed> >
> ----- Original Message ----- > From:
Gary A. Serkhoshian > To: amibroker@xxxxxxxxxxxxxxx
> Sent: Friday, May 14, 2004 6:10 PM>
Subject: Re: [amibroker] Arrows bouncing around> >
> Ed,> > I'm guessing the problem
only occurs with the> second> set of
plotshapes. -100 for an offset is pretty>
large. I believe the offset is in pixels,
and> zooming will affect that to some degreee. Pick
a> smaller number, and everything will work great.>
> Regards,> Gary> >
__________________________________Do you Yahoo!?SBC Yahoo! -
Internet access at a great low price.<A
href="">http://promo.yahoo.com/sbc/Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|