- You are using a market order, so your exit is essentially indeterminate. You are giving the market counter-party permission to give you whatever price happens to be when your order gets to the execution point, as determined by the counter-party. Therefore, we cannot even determine whether your exit has any relation to the close of any bar other than the relevant HeikenAshi bar itself.
- We do not know how far the Ask was below the relevant HeikenAshi bar either, so we cannot know where the trigger price was.
You will have to examine your log and relate the price action properly to the chart.
If you want your exit order to execute when hit, it must be a sitting order, not one that is triggered dynamically. Issue an ExitLongStop() at the relevant price. A sitting Stop order is executed when hit: making the CalculateOnBarClose property irrelevant.
Let me answer your specific question clearly. Your question was: "I don't see where I have the choice of making each Set in the Condition Editor to choose on BarClose or not. Am I wrong?" The answer is: You are not wrong. You cannot do that in the Wizard, and doing it in code will still be extremely tricky.
I will not say that it is impossible to use CalculateOnBarClose in a manner where you can switch it between true and false. Many unsupported things can be done in code. Just not always in an easy manner. Just saying.
Comment