Adding Count of VPA Signals

This is the place to discuss EdgeRater Chart Script

Moderator: Chris White

Post Reply
Chris White
Posts: 200
Joined: Mon Nov 29, 2010 9:21 pm

Adding Count of VPA Signals

Post by Chris White »

If you have a specific set of VPA signals of interest and you would like to count the number of those signals in the last 5 bars, here's a quick way to do it by modifying the existing VPA_Overlay script.

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);
This has generated:
  • 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
You can then add that new script as a lower indicator on a chart, or add the CountCond value as a new column in a template. Attaching script and template to this post.
VPA_Signals.zip
VPA Signals template and script
(139.52 KiB) Downloaded 1305 times
Post Reply