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 ThatManFromTexas with 2 thanks per post
    3. looks_3 MWinfrey with 1.8 thanks per post
    4. looks_4 Xav1029 with 1.2 thanks per post
    1. trending_up 24,498 views
    2. thumb_up 35 thanks given
    3. group 13 followers
    1. forum 35 posts
    2. attach_file 2 attachments




 
Search this Thread
  #31 (permalink)
AlexG
Moscow
 
Posts: 5 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?
Thanks Mike. Godspeed.
The Elite Circle
No book, only a stair: journaling fills where price move …
Cryptocurrency
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 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,337

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,580 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,826

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 X 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


© 2026 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 - Downloads - Top
no new posts