I programmed an indicator which I want to use as an entry signal in my strategy. If I let the indi run only on a chart with the output window open, everything works fine and I receive the right values from this indicator in the outputwindow.
Then I implemented the indicator into my strategy. The rest of it worked fine so far. This I tested on a simple entry logic, wich I changed to a CrossAbove-logic using my indicator. I tested the strategy again in a proper part of a Replay file and despite the entry-condition was fulfilled, nothing happened, no entry!!
So I wanted to print the indicator value into the output window to check, if it takes the right values. But I only get "n. def." as a result, no values. So I assume that's the reason, why there is no entry happening.
How can that be? The indicator should take a value within the strategy as it does on the chart, no? I attached both the indicator and the strategy script.
Please help me! thx

Comment