Announcement

Collapse
No announcement yet.

swinghighlow-pivot efs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • swinghighlow-pivot efs

    Second post - not sure first one took

    I have tried to search for the swinghighlow-pivot every way I know how and cant find it to refer to. I am trying to attach my copy to this post.

    This is a good efs for finding swing high and lows in a timely manner.

    My problem when I try to use this efs it slows my esignal down extremely slow. I would like the author or Jason or some one to look at this an advise me what might be done to correct it.
    Thanks,
    Jerry D.

    If this cant be done or no one has a desire to look at this a recomendation of another efs to quickly find swing highs and lows would be appreciated.
    Attached Files

  • #2
    Jerry
    The first thing you can do which will save considerable processing resources is to enclose the SwingHigh and SwingLow functions inside a BARSTATE_NEWBAR condition and set the offset to -1 (see the example in the dsUtilities Help file). There is no reason that I can see that you would want to compute these functions on every tick.
    Also - within the context of this specific efs - you really do not need to set the trailing_bars to 50. This setting represents the number of bars back that the script loops through every time the function is called which will inevitably add processing time (especially if you are computing on every tick instead of on every new bar).
    So, if you are only looking for one instance of SwingHigh or SwingLow as it occurrs then set the trailing_bars to the minimum required. If the strength is set for example to 5 then the minimum required trailing_bars will be 11 ie 5+5+1 (see the example provided in the dsUtilities Help file).
    Alex

    Comment

    Working...
    X