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

[amibroker] scRemBuyTrail



PureBytes Links

Trading Reference Links


Hi Joe !
 
The answer is use graph1 in place of the number 1 in your code.  Graph0 is first plot, graph1 is second, etc., etc.
 
Also as a tip to simplify your code as shared by Dimitris, try this
 
PlotShapes( (C1 + C2) * shapehollowuparrow, .....
 
See you tomorrow,
GaryJoe Landry <jelandry@xxxxxxxxxxxxx> wrote:




I'm having difficulty associating the plot shapes with the specific plot lines.  Note in the "yposition"  where it says  the shapes "by default they are plotted 'around' graph0(first indicator line).  I haven't figured out how to change the Y position association for each of the following plot function calls. 
 
Plot(C,'"",colorgreen);
Plot(MA(C,10),"",colorred);
Plot( 50,"",colorblack); 
 
If I write >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>. 
PlotShapes(
IIf(C1 OR C2 ==1,shapeHollowUpArrow,shapeNone),colorGreen); //defaults to first indicator plotted it will 'attach' to the first plot line, but if I try to attach it to the second plot line in my AFL sequence of code it will not  
PlotShapes(
IIf(C1 OR C2 ==1,shapeHollowUpArrow,shapeNone),colorGreen,0,1); //layer 0 and second indicator 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
where I understand  0 is for the default layer and 1 for the 2nd indicator plotted in the sequence.  I'm missing something very obvious but  I can't seem to solve it. 
Thanks in advance for the help
JOE L. 
 
 =====================================================================================================================




SYNTAX 
PlotShapes( shape, color, layer = 0, yposition = graph0, offset = -12 ); 

RETURNS
NOTHING 

FUNCTION 
Plots arrows and other shapes on any chart pane. 
Parameters: 
shape defines type of the symbol. when shape is zero nothing is plotted values other than zero cause plotting various pre-defined shapes. Odd values plot shape BELOW indicator, even values plot shape ABOVE indicator. 
color defines color of shape 
layer defines layer number on which shapes are plotted 
yposition defines Y-position where shapes are plotted (by default they are plotted 'around' graph0 (first indicator) line) 
offset - (or distance) parameter (by default -12 ), Offset is expressed in SCREEN pixels. Negative offsets shift symbols down, positive offsets shift symbol up. To place the shape exactly at ypostion, specify 0 as offset Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 
		Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢


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 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.