Priority Cutoff Blocks Sell Code
Author: swuzy
Creation Date: 1/18/2015 12:33 AM
profile picture

swuzy

#1
Hi,

Priority is useful, but sometimes it generates too many visual/manual alerts.

I use a Priority Cutoff to trim off the or filter and discard the lower priority numbers.

However this results in no sell transactions (or does not execute many sell transactions that it should). Without the priority cutoff lines, the back test works.

Since I am not auto trading, I would like to use a Priority Cutoff logic to reduce daily visual clutter and still generate sell transactions.

Is this fixable?

Thanks.

CODE:
Please log in to see this code.
profile picture

Eugene

#2
It's a misconception that Priority Cutoff affects your sell code anyhow. Did you intend to create a multi-position strategy? If not, restore the single-position template by inserting the require "else" clause back before the buy module. This is the reason for positions getting out of sync.

Otherwise you need to restructure the code as per the WealthScript Programming Guide > Programming Trading Strategies > Multi-Position Strategies > MP Strategy Template.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).