ploblem with XYScatterchart

#1
Hello.everybody
I would like to take only data from exploration to plot.But the loop-for is to be counted from first bar.It makes out of analysis'range(from-to-date) that I specific.
And If possible anyone know? how to rename X-axis to string.(1=monday,2=tuesday..)

this is my afl code.

Buy=Cross(C,MA(C,20));
SELL=Cross(MA(C,20),C);;
BuyPrice = C;
SellPrice = C;
Filter=Buy;
Days=DayOfWeek();
Clr = ColorHSB( Status("stocknum"), 255, 255 );
for(i=0;i<BarCount;i++)
{
if(Buy)
{
XYChartAddPoint( "C vs Day", "", days , C,Clr );
}
}
XYChartSetAxis( "C vs Day", "Dayofweek", "Close price" );
AddColumn(C,"Close",1.4);
AddColumn(DayOfWeek(),"Day",1.4);


[/url][/IMG]

[/url][/IMG]

First pic.we will see 5 signals.but the other one have too many.
Thank you.
 
Last edited: