Hi, I have a Strategy which i find behaves differently from expected and I can’t figure it out.
its based on CCI crossings for entry points and appears to be entering a more often than I think it should.
SO I’ve attached the code and the chart with the problematic area. In the red rectangle is the area of interest, the purple circle shows two entry positions which have triggered whereas the variables I am drawing (entryup, entrydn, exit up, exit dn) in this case entry down do not appear to trigger. But I can’t see why or how a buy signal can be created without the necessary entrydn condition being met.
What am I doing wrong, it can’t be a PRC error. Thanks.
Hi Roberto, that’s correct. Can you help explain why, in the purple circle in the image attached, there are two new down positions opened but in the chart “Backtest Variables” (where Entry up, Entry Down, Exit Up and Exit Down are displayed) there is zero value for Entry Down.
I would expect each new entry position to be triggered by the Entry Down or Entry Up variable which is zero in the two cases identified on the chart attached, There should be no entries as far as I can see, but the system enters down on two consecutive occasions with no apparent reason.
There must be either different price data or another trigger as yet unclear..
okay my bad…Only three of the variables were showing, for some reason I set the EntryDn variable to transparent. Often it helps just to explain to someone 😀 thanks.