Hello,
I'm getting a blank column output for the 2nd column (smaT) when I run Exploration. I'm probably missing something obvious. Thank you for any input on how to debug this.
If I change the symbol for newHi to SPY, it works fine. So I assumed it was the data for newLo. But if I change only the newLo symbol to SPY, it also works fine. I have pad and align checked in the settings. I'm baffled.
You need to check if you are NOT feeding the MA with invalid numbers (such as NaN - not a number or Infinity, etc). Typical and most common coding error that leads to invalid numbers is division by zero. If you aren't certain just use Nz() function before you feed MA with input:
newHi = Foreign("#NYSEHI","C");
newLow = Foreign("#NYSELO","C");
ratio = newHi/(newHi + newLow);
ratio = Nz( ratio ) ; // remove Nans, Infinity and all kind of problematic stuff
smaT = MA(ratio,10);
Filter = 1;
AddColumn(ratio,"ratio",1.2);
AddColumn(smaT,"sma10",1.2);