This EFS is part of a system I'm working and the purpose is to simply plot a trailing stop based on ATR.
For the sake of simplicity this is a stripped down version of the code with alot of comments removed temporarily as I wanted to post this within the text of this post.(it's still too long)..this is a mangled version of some code provided graciously by Steve Hare to correct a indicator drifting problem. The error I'm having is unrelated to the code Steve provided.
I'm having difficulty finding the logic error which is occurring where the value plots correctly for a period of time and then it basically plots off the scale incorrectly.
Debugging is difficult enough when you can set breakpoints and use a debugger to display values, but I'm way over my head using debugprintln alone and would appreciate any help as I give up.
For the sake of simplicity this is a stripped down version of the code with alot of comments removed temporarily as I wanted to post this within the text of this post.(it's still too long)..this is a mangled version of some code provided graciously by Steve Hare to correct a indicator drifting problem. The error I'm having is unrelated to the code Steve provided.
I'm having difficulty finding the logic error which is occurring where the value plots correctly for a period of time and then it basically plots off the scale incorrectly.
Debugging is difficult enough when you can set breakpoints and use a debugger to display values, but I'm way over my head using debugprintln alone and would appreciate any help as I give up.
Comment