Hi Marshall
Attached an old piece of code from Demetri that was posted this week.  
Not sure what to do with it... interesting though.
Roger
// Generalised Sequential buy/sell signals
SetChartOptions(0, chartShowDates);
GraphXSpace = 5;
Plot(C,"C",colorWhite,64);Title=Name()+",";

for(x=5;x<25;x++)
{  
   b2=Sum(C<Ref(C,-3),x)==x;
   Buy=b2==0 AND Ref(b2,-1);
   PlotShapes((shapeHollowSmallCircle)*b2,x);
   PlotShapes(shapeUpArrow*Buy,colorGreen,0,C,0 );
   Title=Title+WriteIf(b2,"b["+WriteVal(x,1.0)+"]","");
}

for(x=5;x<25;x++)
{  
   S2=Sum(C>Ref(C,-3),x)==x;
   Sell=s2==0 AND Ref(s2,-1);
   PlotShapes((shapeHollowSmallCircle+shapePositionAbove)*s2,x);
   PlotShapes(shapeDownArrow*Sell,colorRed,0,C,0 );
   Title=Title+WriteIf(s2,"s["+WriteVal(x,1.0)+"]","");
}

Reply via email to