public class ProvaStrategy : Strategy
{
private MACD fast;
private MACD slow;
....
....
else if (State == State.Configure)
{
fast=MACD(12,26,9);
slow = MACD(12, 26, 9);
}
protected override void OnBarUpdate()
{
if (CurrentBar < BarsRequiredToTrade)
return;
if (CrossAbove(fast, slow, 1))
EnterLong();
else if (CrossBelow(fast, slow, 1))
EnterShort();
//Add your custom strategy logic here.
}
If i write :
CrossAbove(fast.fast, slow.slow)),..
thanks

Comment