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.
Size:
Color:
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.
Size:
Color: