NexusFi: Find Your Edge


Home Menu

 





Manual entry, automated exit (Ninja Trader or other)?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one peaceland with 7 posts (0 thanks)
    2. looks_two MWinfrey with 6 posts (11 thanks)
    3. looks_3 monpere with 5 posts (12 thanks)
    4. looks_4 Xav1029 with 5 posts (6 thanks)
      Best Posters
    1. looks_one monpere with 2.4 thanks per post
    2. looks_two MWinfrey with 1.8 thanks per post
    3. looks_3 Xav1029 with 1.2 thanks per post
    4. looks_4 bnichols with 0.7 thanks per post
    1. trending_up 17,284 views
    2. thumb_up 35 thanks given
    3. group 13 followers
    1. forum 35 posts
    2. attach_file 2 attachments




 
Search this Thread

Manual entry, automated exit (Ninja Trader or other)?

  #31 (permalink)
AlexG
Moscow
 
Posts: 6 since Sep 2012
Thanks Given: 79
Thanks Received: 1

Hello.
Can anyone hear Giga Super DOM for NT? Like properly written.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
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
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #32 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335

Got the problem solved with the ManageTrades indicator for anyone interested.

Attached Files
Elite Membership required to download: ManageTradesV1.cs
Reply With Quote
  #33 (permalink)
 slamdunk73 
Irvine CA/USA
 
Experience: Intermediate
Platform: NinjaTrade,Amibroker,Tradelink
Trading: Stocks
Posts: 3 since May 2013
Thanks Given: 1
Thanks Received: 1


I was able to automate the exit of a position with a manual entry. The key was to turn off the automatic management of the order and do it yourself.

protected override void Initialize() {
Unmanaged = true;
}

When I run the auto exit strategy, I pass in as a parameter how many shares I want to sell of that symbol. NT thinks the position is flat. When the exit signal is trigger, I send a SubmitOrder(), and set a flag for the loop to be false.

exitOrder = SubmitOrder(0, OrderAction.Sell, OrderType.Limit, Quantity, exitPrice, 0, "", "Exit");

Let me know if you need the code.

Andy

Reply With Quote
Thanked by:
  #34 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824

If you have the correct account and instrument, it's quite easy to grab the correct positions and manipulate them.
The advantage is that you can keep the orders managed. I do similar stuff with my vvMiniTradePanel...have a look at the code, it might be good for reference.

vvhg

Hic Rhodos, hic salta.
Reply With Quote
  #35 (permalink)
 
jupiejupe's Avatar
 jupiejupe 
San Diego California
 
Experience: None
Platform: Home Grown IN Development
Broker: Broker InteractiveBrokers
Trading: CL
Posts: 146 since Apr 2011
Thanks Given: 87
Thanks Received: 68


slamdunk73 View Post

Let me know if you need the code.

would you mind?

"Learning to Trade: The Cost Of Tuition"
- a roadmap of my lessons learned as taught by the market
Follow me on Twitter Reply With Quote
  #36 (permalink)
Tradexxx
Germany
 
Posts: 9 since Feb 2015
Thanks Given: 3
Thanks Received: 0

can this used for NT8 also? or is there a solution for NT8?

Reply With Quote




Last Updated on March 1, 2020


© 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