I have been working on using the enterlonglimit and entershortlimit code from using code snippets from other posts and the resource library. I have enacted the keep order alive until cancelled because I have seen that has been easier for me. I have been trying to find out how to properly add my cancel conditions but I am not sure the best course of action. I know the resource library says to add on orderupdate but when I tried that I seemed to have issues. Is there a way to keep it on bar update and change how its coded? Or is it better to switch this to resubmit the order until my other conditions are no longer true? Should the logic be added in the same if bracket { logic here} on bar update or do I create its own somewhere else?
I am unable to share the actual code because I had someone work on it last year. It is a managed approach but then internally there is also a lot of conditional order placement codes built in (not sure if that's the proper terminology). Is there a way for me to add those conditional order placement ideas without explicitly using a limit order then? If so, I could create the bool values and then it would submit the market order when it reaches my proper pullback that I wanted.
Once all my order conditions are true currently I will place a limit order at the Low[2] or high[2]. All of this is working properly but what I want to have happen is to cancel the order if Close[0]>=Profit Traget1 or Bars since signal is >= user defined # or time is after my specified close.
There used to be an old piece of code I found but cannot find anymore that I believe would have been able to answer my questions but I cannot find it on the forum anywhere at this popint
Any help pointing me into the right direction is appreciated!

Comment