For instance, say I'm interested in how many of the following flags occured in the last 5 days:
buyCond, effortUp, lowVolTest, lowVolTest1, lowVolTest2, strengthDown, strengthDown1, strengthDown2, revUpThrust, noSupplyBar
I would add the following two lines to the end of the VPA_Overlay script and save the new script as VPA_Signals:
Code: Select all
MyCond: buyCond | effortUp | lowVolTest | lowVolTest1 | lowVolTest2 | strengthDown | strengthDown1 | strengthDown2 | revUpThrust | noSupplyBar;
CountCond: COUNT(MyCond, 5);
- MyCond flag which will be true if any of the listed flags are true
CountCond value which contains the number of times in the last 5 days the MyCond flag was true