If I have calculate on bar close = true, then my indicators work and calculate correctly, but then I'm not entering the trade until the bar closes, which is not my goal.
If I have calculate on bar close = false, then my indicators don't calculate the way I want them to, but my entry is perfect.
Essentially I am calculating a value that is below the current market price (if going short) or above the current market price (if going long). And I want the order to trigger as soon as that price is hit.
What is the best way to code this? I am currently using a buystop/sellstop order, but that order is being updated everytick and flooding my output window. I'm guessing there is a more efficient way to code this.
Thanks,
Rich
Comment