Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 15:21:09 +0000



Post From: Offering To The Community: Brett's Multi-Function Trailing Stop

[2021-06-16 22:43:41]
bjohnson777 (Brett Johnson) - Posts: 284
owendonk: I do have a percent option in the settings screen. This is calculated from the entry price and then sets the trail normally. As far as "profit" goes and dynamically changing modes, not really. I'm not seeing an easy and safe way to do this. The main problem is the limited execution environment of a chart study. A chart study isn't running as a standalone program. The problem is keeping track of dynamic data and past triggers. It can be reset when changing chart modes, closing a chart, closing SC, losing SC during a windoze crash, losing SC if the power goes out, or anything that triggers a chart recalculation. When a chart study gets reset, it's like starting the program all over again from scratch with the dynamic data missing. I've already kinda pushed this Multi-Function Trailing Stop to the sane limit. There are ways of saving data to disk, but they would be a kludge inviting disaster. Trying to program safteys and checks around the kludge would take a lot of time and effort and make this chart study far heavier than it already is. To be clear, this is a common problem of any charting program. SC is more flexible than most, so this study is possible here where it might not be in a lesser charting program.

As an example, if you've watched the trail line being drawn on a 1 minute chart, sometimes a reset will redraw the line in a slightly different way, or sometimes the line will disappear and start again from the current tick. There could also be a "catch up jump" on the next bar tick.