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,079 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)?

  #1 (permalink)
peaceland
Lomita, CA/USA
 
Posts: 8 since Sep 2012
Thanks Given: 0
Thanks Received: 0

I want to do manual entry, and then have Ninja Trader exit the trade according to my specs. Is this possible? Thank you!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #2 (permalink)
 
bnichols's Avatar
 bnichols 
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
Posts: 637 since Feb 2010
Thanks Given: 64
Thanks Received: 460

ATM (Advanced Trade Management) strategies do this and more.

Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
peaceland
Lomita, CA/USA
 
Posts: 8 since Sep 2012
Thanks Given: 0
Thanks Received: 0



bnichols View Post
ATMs do this and more.

So far, the ATM I have looked at in Ninja, does not allow exit via price crossing moving average. I would consider an automated entry if I could figure out if MA is moving higher or lower. Is this possible without learning C#?

Thank you for responding!!!

Reply With Quote
  #4 (permalink)
 
bnichols's Avatar
 bnichols 
Dartmouth NS
 
Experience: Intermediate
Platform: MC, MC.Net, NT, TWS
Broker: IB / IQFeed / Kids
Trading: Forex, stocks
Posts: 637 since Feb 2010
Thanks Given: 64
Thanks Received: 460


peaceland View Post
So far, the ATM I have looked at in Ninja, does not allow exit via price crossing moving average. I would consider an automated entry if I could figure out if MA is moving higher or lower. Is this possible without learning C#?

Thank you for responding!!!

Aha! The next simplest solution is the Strategy Wizard, that will build a simple strategy for you if you fill in a number of fields.

The manual part becomes starting the strategy...several approaches to that.

ETA: All may involve learning something about how to program NT unfortunately, but check out the "Do you want your [heart's desire] created for free" thread (elite access: ).

There are posts on nexusfi.com (formerly BMT) describing how to add buttons to the chart (e.g., , which requires Elite access as well), but see e.g. Custom Buy, Sell and Anything Buttons In [AUTOLINK]NinjaTrader[/AUTOLINK] laurelhurst management

Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,348


peaceland View Post
..... Is this possible without learning C#?

Thank you for responding!!!

@peaceland

Yes... but it involves paying a programmer...

Other than that ....

What you could do.... not that I recommend this ...

You could create 2 very simple strategies in the Strategy wizard , a buy strategy that issues a buy order when your criteria is met and a sell strategy that issues a sell order when your criteria is met....

You enter a long order manually ... then start the "sell" strategy ... when your exit criteria is met... the strategy will issue a sell order taking you flat ... same for the other way around....

I am sure there will be some "gothcha's " ....

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


ThatManFromTexas View Post
@peaceland

Yes... but it involves paying a programmer...

Other than that ....

What you could do.... not that I recommend this ...

You could create 2 very simple strategies in the Strategy wizard , a buy strategy that issues a buy order when your criteria is met and a sell strategy that issues a sell order when your criteria is met....

You enter a long order manually ... then start the "sell" strategy ... when your exit criteria is met... the strategy will issue a sell order taking you flat ... same for the other way around....

I am sure there will be some "gothcha's " ....


@ThatManFromTexas: If you would not recommend it, why do you recommend it? Doing it this way is calling for trouble.

Reply With Quote
  #7 (permalink)
 
Xav1029's Avatar
 Xav1029 
Tampa, FL
 
Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker: Mirus Futures/Zen-Fire
Trading: 6E, M6E, 6J
Posts: 1,375 since Dec 2011
Thanks Given: 1,452
Thanks Received: 3,377

I wrote a strategy shell for that and posted it here

Manual entry buttons are there, a manual exit button is there, so you just have to code exit signals for the corresponding entry signal. I HAVE NOT TESTED IT LIVE, so I suggest you run it on sim before firing it live.

Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Xav1029 View Post
I wrote a strategy shell for that and posted it here

Manual entry buttons are there, a manual exit button is there, so you just have to code exit signals for the corresponding entry signal. I HAVE NOT TESTED IT LIVE, so I suggest you run it on sim before firing it live.

You can also do something similar with the ChartTrader panel enabled, and use the usual button, but add a "smarter" ATM logic.
I did that for a guy, but I can't unfortunately share the source (NDA with the customer...).

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #9 (permalink)
 
Xav1029's Avatar
 Xav1029 
Tampa, FL
 
Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker: Mirus Futures/Zen-Fire
Trading: 6E, M6E, 6J
Posts: 1,375 since Dec 2011
Thanks Given: 1,452
Thanks Received: 3,377


sam028 View Post
You can also do something similar with the ChartTrader panel enabled, and use the usual button, but add a "smarter" ATM logic.
I did that for a guy, but I can't unfortunately share the source (NDA with the customer...).

Did you happen to use ChartControl?

Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371



sam028 View Post
You can also do something similar with the ChartTrader panel enabled, and use the usual button, but add a "smarter" ATM logic.
I did that for a guy, but I can't unfortunately share the source (NDA with the customer...).


Xav1029 View Post
Did you happen to use ChartControl?

I do this as well. I can open a position normally with Chart Trader, and exit with a strategy by pressing a button, or change the custom trade management while the trade is active by pressing another button, i.e. switch from a conservative trail management to an aggressive trail management, to a ratcheting trail management, and back again, etc. After you open a position normally with Chart Trader, you can get the open position data using:

NinjaTrader.Cbi.Globals.Accounts[i].Positions[k].MarketPosition
NinjaTrader.Cbi.Globals.Accounts[i].Positions[k].Quantity
NinjaTrader.Cbi.Globals.Accounts[i].Positions[k].AvgPrice

and other pertinent info about the position like Account, Instrument, etc..

Now that you have the open position data, you can write your exit code as you wish using that info, if needed.

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