Am I checking the levels correctly? No orders are placed when I try to optimize the strategy.
Here's my code snippet:
_ADXVMA_Alerts_v01_5 adxvma = _ADXVMA_Alerts_v01_5(iPeriods, bConservative);
ManageOrders();
if (Position.MarketPosition != MarketPosition.Flat) return;
if (Rising(adxvma) && (CrossAbove(Open[0], adxvma.Rising, 0))) {
GoLong();
}
else if (Falling(adxvma) && (CrossBelow(Open[0], adxvma.Falling, 0))) {
GoShort();
}
This works if I only use the first part of the if statement: Falling(adxvma).
I will be adding more conditions so I need to learn the best way to test for these indicator levels.
Thanks,
Ned

Comment