The open price will continue to be used in the backtest. Even a change in the Automatic Analysis Window does not change the backtest. I don't use ApplyStop...
I've read many comments in the forum about "SellPrice" but haven't been able to find a solution so far.
Why do you guys not follow the forum rules and post complete reproducible code !!!
I repeat:
including minimum, but working reproducible example of the formula that shows the problem that can be copy-pasted and run without modification
and
better yet, in case of Analysis (backtest/exploration/optimization), save entire PROJECT FILE (File->Save As...) into .APX file and attach it so one can just load the project (this includes formula and settings)
Apparently you don't understand a thing.
It is not about hundreds of lines it is about MINIMUM complete code without missing parts that is reproducible. Shrink your code in such a way that it still shows the issue described. I don't think it is that difficult to understand.
First of all, I know how to "debug" a code. This code successfully handles sums in the high seven digits. I think it doesn't take too much thought to understand that I don't want to publish this code here.
My one and only question was why I can override BuyPrice and not SellPrice.
I was just asking if someone could give me a hint as to what could be causing this.
It's actually not difficult to understand, is it???? I don't quite understand your rude answer. I'm friendly too, aren't I???
That's perfectly fine. However you need to follow forum rules and (as @fxshrat as already advised) post reproducible code. Just replace your 'Secret Source' values with dummy values.
You said you know how to debug!
You have been given the appropriate answer but you don't want to listen.
It's yourself who is not understanding.
@fxshrat is not being rude, he is being direct (which is warranted due to your responses).
I have to apologize to everyone.
I made the mistake
A really stupid mistake.
So far I have only ever used Open as Enter and Exit and at some point I overwrote the SellPrice in the CBT.