Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Ok....I see now what you are trying to do. I am not that good at programing lines and stuff (prob easy...but no time to learn).
This is what I recommend. If you are trading in Ninja then make sure you have the chart trader turned on (it will show up on the side with buttons that say Buy Mkt, Sell Mkt, etc). Right click on the side (where Chart trader is) and under properties make sure all the "lines" are turned on for stop orders, limit orders, etc. When you place a trade the lines will show up on the chart. The problem is once the trade is complete most of the lines will disappear (like your target line if you get stopped out). So when your lines are there just click on the chart and click hit F2 and draw a line where you need to (double click the line to change its color and thickness)...you can extend the line till the end of the trade. NT will automatically keep the entry and exit points on the screen. If you do this all day then you will have what you want and can just print the screen.
I fully understand this is a "non-automated" way to do it and there are probably many better more elegant ways to get this to work, but I will have to differ to more experienced programmers here to help you for that.
If you don't understand the above let me know and I will try to explain better.
Can you help answer these questions from other members on NexusFi?
You want to assign the values of what your stop and target are when an order is executed correct? You would have to do this outside of the method. You would have to write the values in when they are assigned in your initial order, I think? The OnExecutionUpdate method returns after every order execution to my knowledge. I will have to do more research on that one though let me know what you find out
Thats exactly the problem - those lines disappear. What you have suggested is what I am currently doing and what I aim to automate. Ill figure it out eventually it really must be easy, some object will expose those values, just got to work out which event and what the object is . Basically I know nothing right now
Yes exactly what I want to do. I might have to interrogate the ATM object (if there is such an object exposed) at execution. Ill dig into this more during the week, weekends are my time away from thinking too hard
Search the ninjatrader forums.....if you can not find it there then email [email protected]
Explain the big picture and and the details.....they should be able to help
Sheesh I opened up a can of worms with this one. ATM strategies are not easily available unless you are the one that has executed the ATM through code. If it has executed via the chart trader then the ATM becomes a lot more difficult to get hold of. The ninja development crew are incredibly helpful, hats off to them but I think that Ill come back to this project after Ive cut my teeth on something simpler and have a better understanding of the product.