An example of multiple entries and multiple exits is provided in post #10. Please review this. This simple working example's goal is to show proper usage of signal names and entries per direction to have multiple entries and multiple exits. The prices you would like to submit these, the times you would like to submit these, may be different in your final project.
Debugging is an important part of programming. This should be something you learn before you start learning any complex logic for indicators or strategies. This is also in the NinjaScript Editor 401 training video. The training videos should also be watched to learn how to use NinjaTrader.
Below is a link to a forum post that demonstrates how to use TraceOrders and prints to understand behavior. Please read the material, watch the videos (and try and follow along with them to learn how to debug), then begin debugging your code. The output will tell us what is going on.
May I have the output from TraceOrders and prints? (Right-click the output window -> select save as.)
Also, below is a link to a forum post with helpful information about getting started with C# and NinjaScript that includes links to the Strategy Builder 301 and NinjaScript Editor 401 training videos.
I'm further linking the training video playlists.
As a heads up, I am not able to debug your code, so I must guide with questions and answer any of your direct questions. Unfortunately, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services or one on one educational support over the phone in our NinjaScript Support department. This is so that we can maintain a high level of service for all of our clients as well as our associates.
We can provide demonstration example scripts for you to import and learn from. Links to educational material in the help guide and videos. We are also able to guide you through the debugging process to assist or building process of a specific script you are wanting to work out.
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 our NinjaTrader Ecosystem team follow up with you with 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.
Comment