NexusFi: Find Your Edge


Home Menu

 





What object retrieves stop and target?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Grantx with 10 posts (0 thanks)
    2. looks_two marpol with 4 posts (1 thanks)
    3. looks_3 rleplae with 2 posts (1 thanks)
    4. looks_4 sam028 with 1 posts (2 thanks)
    1. trending_up 3,739 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 18 posts
    2. attach_file 0 attachments




 
Search this Thread

What object retrieves stop and target?

  #11 (permalink)
 marpol 
San Francisco, CA
 
Experience: Advanced
Platform: IB-TWS, Ninja, Wave59, R
Broker: IB, IQFeed
Trading: ZB
Posts: 37 since Sep 2013
Thanks Given: 0
Thanks Received: 26

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.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
Dayzed
Detroit, Michigan, United States
 
Posts: 38 since Feb 2017
Thanks Given: 10
Thanks Received: 20

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

Sent using the NexusFi mobile app

Reply With Quote
  #13 (permalink)
 Grantx 
Reading UK
Legendary no drama Llama
 
Experience: None
Posts: 1,787 since Oct 2016
Thanks Given: 2,826
Thanks Received: 5,058



marpol View Post
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.

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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #14 (permalink)
 Grantx 
Reading UK
Legendary no drama Llama
 
Experience: None
Posts: 1,787 since Oct 2016
Thanks Given: 2,826
Thanks Received: 5,058


Dayzed View Post
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

Sent using the NexusFi mobile app

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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #15 (permalink)
 marpol 
San Francisco, CA
 
Experience: Advanced
Platform: IB-TWS, Ninja, Wave59, R
Broker: IB, IQFeed
Trading: ZB
Posts: 37 since Sep 2013
Thanks Given: 0
Thanks Received: 26

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

Reply With Quote
Thanked by:
  #16 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Grantx View Post
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

Did you tried with GetAtmStrategyStopTargetOrderStatus() ?

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #17 (permalink)
 Grantx 
Reading UK
Legendary no drama Llama
 
Experience: None
Posts: 1,787 since Oct 2016
Thanks Given: 2,826
Thanks Received: 5,058


sam028 View Post
Did you tried with GetAtmStrategyStopTargetOrderStatus() ?

No I haven't. Looks promising. will try and let you know. Thanks sam028.

Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #18 (permalink)
 Grantx 
Reading UK
Legendary no drama Llama
 
Experience: None
Posts: 1,787 since Oct 2016
Thanks Given: 2,826
Thanks Received: 5,058


sam028 View Post
Did you tried with GetAtmStrategyStopTargetOrderStatus() ?

No luck with the GetAtmStrategyStopTargetOrderStatus() method. "..does not exist in the current context"

Maybe theres a missing decleration or something who knows. I've asked the ninja guys so will wait and see what they say.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #19 (permalink)
 Grantx 
Reading UK
Legendary no drama Llama
 
Experience: None
Posts: 1,787 since Oct 2016
Thanks Given: 2,826
Thanks Received: 5,058

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.

Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on April 10, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts