I cannot generate logic for you, I can help you understand the logic you have written.
If you are wanting someone to correct your logic, this thread will remain open for any community members who would like to do this as a convenience to you.
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
That said, what is the behavior you are expecting?
"what is incorrect is the 29min timeframe selling at a profit target of 12440 instead of using the 12445.25 profit target because: a) the position quantity is greater than 1 b) the total position quantity is less than QuantityThreshold."
Why are you expecting 1445.25 as the limit?
Where does this value come from?
Are you assigning this value to the variable used for the order method call?

Comment