Hello.everybody
I would like to take data from exploration to plot.But the loop-for is still to be counted first bar.It makes out of analysis(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[i])
{
XYChartAddPoint( "C vs Day", "", days [i], C[i],Clr );
}
}
XYChartSetAxis( "C vs Day", "Dayofweek", "Close price" );
AddColumn(C,"Close",1.4);
AddColumn(DayOfWeek(),"Day",1.4);
[IMG][/IMG]
[IMG][/IMG]
First pic.we will see 5 signals.but the other have too many.
Thank you.
I would like to take data from exploration to plot.But the loop-for is still to be counted first bar.It makes out of analysis(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[i])
{
XYChartAddPoint( "C vs Day", "", days [i], C[i],Clr );
}
}
XYChartSetAxis( "C vs Day", "Dayofweek", "Close price" );
AddColumn(C,"Close",1.4);
AddColumn(DayOfWeek(),"Day",1.4);
[IMG][/IMG]
[IMG][/IMG]
First pic.we will see 5 signals.but the other have too many.
Thank you.
ploblem with XYScatterchart
Aucun commentaire:
Enregistrer un commentaire