Please teach it.
Syntax
CrossAbove(IDataSeries series1, double value, int lookBackPeriod)
How to use wrong CrossAbove(The first argument is an own work function)
CrossAbove(V1(20),V2(30), int 1)
How to use right CrossAbove(A function established the first argument)
CrossAbove(SMA(10),V2(30), int 1)
##Examples
protected override void OnBarUpdate()
{
//How to use CrossAbove is right for an error(The first argument is an own work function)
if (CrossAbove(V1(20),V2(30),1))
EnterLong();
}
public double V1(int vle)
{
return 5*vle;
}
public int V2(int vle)
{
return 10*vle;
}
Comment