Paul, Thank you...it worked.
Anthony ----- Original Message ----- From: Paul D To: [email protected] Sent: Thursday, July 29, 2010 7:13 AM Subject: Re: [amibroker] plottext This worked for me. I put a dummy rule in for condcolor to test. You can't use Date(). That returns ONE string. DateNum() and DateTime() return arrays you can first assign to a variable and then call the [i] version of that variable in the loop. See below. Hope that helps. condcolor= C > MA(C,20) AND C > MA(C,50) AND C > MA(C,100) AND C > Ref(C,-1) AND Ref(C,-1) < Ref(C,-2) ; dist = 10*ATR(10); myDateTime = DateTime(); for( i = 0; i < BarCount; i++ ) { if(Condcolor[i] ) PlotText(NumToStr(myDateTime[i],formatDateTime) +"\n"+ C[i],i, H[i]+dist[i], colorRed ); } ------------------------------------------------------------------------------ From: Anthony Faragasso <[email protected]> To: [email protected] Sent: Thu, July 29, 2010 3:57:22 AM Subject: Re: [amibroker] plottext It can be any single condition... I have been able to plottext the date , but when I move the selector and click on another area of the chart the Date changes at the specific condition... I would like to date to stick...this is what I am using. condcolor=my specific condition here ; dist = 10*ATR(10); for( i = 0; i < BarCount; i++ ) { if(Condcolor[i] ) PlotText(Date() +"\n"+ C[i],i, H[i]+dist[i], colorRed ); } ----- Original Message ----- From: Inquisitive Voyager To: amibro...@yahoogrou ps.com Sent: Thursday, July 29, 2010 1:14 AM Subject: Re: [amibroker] plottext what is that condition? On Thu, Jul 29, 2010 at 7:46 AM, Anthony Faragasso <ajf1...@epix. net> wrote: I would like to stick a date on the chart tied to a specific condition and not have the date change when moving through the chart...any help appreciated. Thank you Anthony
