Quote from gooch87:
Hi dougcs,
If the MACD is set up like this EM1=5 EMA2=13 Smooth=6 then maybe you need backfill the chart so that the MACD carries over from the day before.
G87
G87,
I was using the wrong coefficients, so now I agree with you that NTRI was a trade today. But for some strange reason, my Tradestation code did not show the entry. All conditions were met for an entry at the open of the 930 AM bar (CST), meaning the trade should have triggered shortly after 900am.
Here is a little print out from my code to the EL output bar:
NTRI count= 12.00
900.00 AM Bar
timeOK= TRUE
CDuv= TRUE
cstoch= TRUE
Cmacd= TRUE
OK2Buy= TRUE
cfrv= FALSE OKfrv= FALSE
du= 106002.25 SK = 82.40
macd= 0.07 sig= 0.05 diff= 0.02
vcum= 196697.00 YC= 34.64 lstClose= 35.28
This shows all conditions are met:
timeOK means it is before 10 am CST
CDuv means the DUV has been exceeded
cstoch means stochastic is above 80
cmacd shows the macd difference is greater than zero.
OK2Buy means entry takes place the next bar if price exceeds yesterday's close which it did.
Some of the other stuff:
cfrv means the condition for an anytime entry when FRV is exceeded .
sk is the stochastic
macd is MACD, etc for the rest of that line.
DU is the DUV
vcum is the volume so far today
YC is yesterday's close
Lst close is the close for this bar 900 am in this case
This has me puzzled as I should have got an entry.
DS
