Mactheriverrat 3,157 posts msg #134270 - Ignore Mactheriverrat modified |
2/13/2017 6:52:06 PM
Chart show clearly that the EMA(13) is above EMA(30) but filter column show -1. Any other type of code that can replace the BxB code. I wonder if this maybe a data matter that SF will have to fix. Just using KEM and CORT as example . CORT shows the right results where KEM doesn't when it come's to the BxB code.
Thanks
John
Submit
|
four 5,087 posts msg #134274 - Ignore four modified |
2/14/2017 12:50:29 AM
-1 is a default that says that the requirement has occurred (KEM ema13/30 requirement has been in place for 100 days or more).
I increased the look back to 250 to capture the cross....
KEM has 215 days of ema13 above ema(30) 1 day ago.
|
Mactheriverrat 3,157 posts msg #134275 - Ignore Mactheriverrat |
2/14/2017 2:05:43 AM
A big thanks FOUR- The code works GREAT!!!!!!!!
|
four 5,087 posts msg #134276 - Ignore four |
2/14/2017 2:25:01 AM
welcome
|
nibor100 1,046 posts msg #134290 - Ignore nibor100 |
2/14/2017 2:05:23 PM
@four,
given that SF defines the results of the days(event,#) command as "it returns the number of days since the event most recently occurred'
Do you know why do the filters above end up with BBb = 0 ;when clearly there is a quantity of days since the most recent occurrence of EMA(13) above EMA(30) for both of those stocks?
It seems like the days command definition might be missing some important characterizing info.
Thanks,
Ed S.
|
four 5,087 posts msg #134302 - Ignore four modified |
2/14/2017 7:05:23 PM
nibor,
Today is day "0", the criteria is met today = 0. Today is the most recent day the criteria is met:
EMA(13) is above EMA(30) 1 day ago. Thus bbb = 0.
|