Here below some code:
private DataSeries StikePattern(DataSeries StrikeId, int BarID, string Label, double phase1a,double phase1b, Color Col, Color Area) {
PriceP4.Set(0);
PriceP5.Set(0);
if(some logic){
PriceP4.Set(1);
PriceP5.Set(1);
}
return PriceP4; //AND I want to return PriceP5 also
}
protected override void OnBarUpdate(){
StikePattern(Barracuda, BarNbID, "Signal", 0.350, 1.620, Color.Lime, Color.Red)
////This function returns PriceP4 for further logic in the OnBarUpdate.
//// How can i also get PriceP5????
}

Comment