Manual entry, automated exit (Ninja Trader or other)? - NinjaTrader | futures io social day trading
futures io futures trading


Manual entry, automated exit (Ninja Trader or other)?
Updated: Views / Replies:7,221 / 34
Created: by peaceland Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

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

  #11 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received


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

That's awsome...that's exactly what I need to do.

Thank you

Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #12 (permalink)
Elite Member
Tampa, FL
 
Futures Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: 6E, M6E, 6J
 
Xav1029's Avatar
 
Posts: 1,374 since Dec 2011
Thanks: 1,452 given, 3,354 received


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

Thanks for the tip. Are Accounts[] and Position[] arrays? @vvhg was trying to access this info as well.

Reply With Quote
The following user says Thank You to Xav1029 for this post:
 
  #13 (permalink)
Trading Apprentice
Lomita, CA/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Forex
 
Posts: 8 since Sep 2012
Thanks: 0 given, 0 received


A little new to all of this, so trying to make sense of everything. I sincerely appreciate all of the responses. Most of them, I do not yet know how to work with. Very much appreciate that "something is possible". I did receive an email from Ninja Trader that they appreciate my desire and have passed it along for consideration for future updates.

What is "ChartTrader"? I do have not seen it, and cannot find it. Is this in NT?

BTW, I have demo fx account w/MB Trading, and demo NT. Hoping to be able to paper trade both of them somehow.

You folks are amazing. Elite, here we come... ;-)

Reply With Quote
 
  #14 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


Xav1029 View Post
Thanks for the tip. Are Accounts[] and Position[] arrays? @vvhg was trying to access this info as well.

They are arrays. Use Intellisence to see what data is available. In the NT code editor, type 'NinjaTrader.Cbi.Globals.Accounts[0].Positions[0].' (No quotes). Once you type the '.' (dot) and stop, the Intellisence will pop up a scrollable list with brief explanations, for available fields, methods, events, etc for the object preceding the '.' This works for all sorts of objects in NT. That is the way I have discovered most of the non-standard code that I use.

Reply With Quote
The following 2 users say Thank You to monpere for this post:
 
  #15 (permalink)
Trading Apprentice
Lomita, CA/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Forex
 
Posts: 8 since Sep 2012
Thanks: 0 given, 0 received

So, I guess this is the question at this point. I need a reliable way to get in the market, and stay there for extended periods of time (hours, weeks, even months at a time), and have a reliable computer system that is not going to go down or reboot or something weird, and actually execute the exit strategy.

Is there a place (broker) that can do this?
How much would it cost me to build a "system" to do this?
Is there someone on this forum that does this kind of thing?

Very much appreciate being here, and would love to be able to just code it up myself, but my programming skills are far from ready at this point.

My other concern is that it appears MB Trading logs me off my demo account. My guess is a strategy is useless if you are continually being logged off. How do we maintain access to the account and make sure we are executing "automated" trades?

Reply With Quote
 
  #16 (permalink)
Elite Member
Tampa, FL
 
Futures Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: 6E, M6E, 6J
 
Xav1029's Avatar
 
Posts: 1,374 since Dec 2011
Thanks: 1,452 given, 3,354 received


peaceland View Post
So, I guess this is the question at this point. I need a reliable way to get in the market, and stay there for extended periods of time (hours, weeks, even months at a time), and have a reliable computer system that is not going to go down or reboot or something weird, and actually execute the exit strategy.

Is there a place (broker) that can do this?
How much would it cost me to build a "system" to do this?
Is there someone on this forum that does this kind of thing?

Very much appreciate being here, and would love to be able to just code it up myself, but my programming skills are far from ready at this point.

My other concern is that it appears MB Trading logs me off my demo account. My guess is a strategy is useless if you are continually being logged off. How do we maintain access to the account and make sure we are executing "automated" trades?

Are you planning on swing trading? Does MB Trading log you off even if you have a position open? Depending on how the "exit strategy" is coded, you might not need to worry about short term disconnects. If it is an actual strategy, then yes this would be a problem. If it is ran through an indicator that accesses your current position, then getting disconnected would not cause a problem. Really depends on how it is coded.

Reply With Quote
 
  #17 (permalink)
Trading Apprentice
Lomita, CA/USA
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Forex
 
Posts: 8 since Sep 2012
Thanks: 0 given, 0 received


Xav1029 View Post
Are you planning on swing trading? Does MB Trading log you off even if you have a position open? Depending on how the "exit strategy" is coded, you might not need to worry about short term disconnects. If it is an actual strategy, then yes this would be a problem. If it is ran through an indicator that accesses your current position, then getting disconnected would not cause a problem. Really depends on how it is coded.

MB shuts down every day for maintenance. So I would have to log on again. There is no way to "stay connected."

My system is pretty simple get in, follow the trend (stay in), when price crosses "x" EMA or SMA, get out. So, I basically just need a way to insure that once I have committed, I have a way out whether I am there or not at the helm. No, I don't think stop loss or TSL is the way to go. It will definitely get hit, that way.

I am wondering if there are services available who will babysit your trades for you in Forex. I know it sounds "wimpy", but if I am new to this and can't seem to figure this out, I am sure there are a lot of other people just as frustrated as I am.

If I had a staff to stay up all night and watch trades for me...

Do you guys on the West Coast stay up from midnight to 9am every morning so you can watch your trades? I'd love to see how everyone here solves that problem. Or do you just move to London or East Coast?

Reply With Quote
 
  #18 (permalink)
Elite Member
Tampa, FL
 
Futures Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: 6E, M6E, 6J
 
Xav1029's Avatar
 
Posts: 1,374 since Dec 2011
Thanks: 1,452 given, 3,354 received


peaceland View Post
MB shuts down every day for maintenance. So I would have to log on again. There is no way to "stay connected."

My system is pretty simple get in, follow the trend (stay in), when price crosses "x" EMA or SMA, get out. So, I basically just need a way to insure that once I have committed, I have a way out whether I am there or not at the helm. No, I don't think stop loss or TSL is the way to go. It will definitely get hit, that way.

I am wondering if there are services available who will babysit your trades for you in Forex. I know it sounds "wimpy", but if I am new to this and can't seem to figure this out, I am sure there are a lot of other people just as frustrated as I am.

If I had a staff to stay up all night and watch trades for me...

Do you guys on the West Coast stay up from midnight to 9am every morning so you can watch your trades? I'd love to see how everyone here solves that problem. Or do you just move to London or East Coast?

Well if MB Trading shuts down, you couldn't monitor the trades regardless. Have you maybe looked at other brokers that do not shut down if you are so worried about it? I could not have a broker that crossed my mind more than once a month. How long do they shut down for?

Reply With Quote
 
  #19 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


peaceland View Post
So, I guess this is the question at this point. I need a reliable way to get in the market, and stay there for extended periods of time (hours, weeks, even months at a time), and have a reliable computer system that is not going to go down or reboot or something weird, and actually execute the exit strategy.

Is there a place (broker) that can do this?
How much would it cost me to build a "system" to do this?
Is there someone on this forum that does this kind of thing?

Very much appreciate being here, and would love to be able to just code it up myself, but my programming skills are far from ready at this point.

My other concern is that it appears MB Trading logs me off my demo account. My guess is a strategy is useless if you are continually being logged off. How do we maintain access to the account and make sure we are executing "automated" trades?

There are all sorts of issues with MB Trading if your want to do anything innovative. Their systems and infrastructure are just antiquated. They have to shutdown after market everyday for maintenance, their responses to order executions and modifications are slow, they have regular unscheduled outages, the market will go through your orders by several ticks and you will not get fills. The only redeeming things I found were are that you can trade micro lots, and they pay you when you provide liquidity with limit orders. That's been my experience with them.

You can do most the things you want with various other brokers. I personally use Interactive Brokers and Mirus Futures to reliably do some of these things.

Reply With Quote
 
  #20 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received



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

Ok...for me this is uncharted territory. I have the buttons working and attempting to add the code that will manage the trade. However, I'm having issues.

 
Code
if (NinjaTrader.Cbi.Globals.Accounts[0].Positions[0].MarketPosition == MarketPosition.Long)
... do something
However, I get an error saying "You are accessing an index with a value that is invalid since its out of range." Which doesn't surprise me. However, how do I set Accounts[0] and Positions[0] to something meaningful so I don't get that error? I had to swallow a bit of pride just to ask this question because I should be able to figure this out without asking. But, not getting anywhere.

Thanks,
Mike

Reply With Quote

Reply



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

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combined auto-entry and manual-exit strategy as a money management device nanobiotech Psychology and Money Management 10 January 31st, 2015 08:51 AM
Entry/Exit optimization strategy vetl Elite Automated Trading 11 June 20th, 2014 08:13 AM
Manual Entry Strategy Shell Xav1029 The Elite Circle 2 May 7th, 2014 09:51 PM
What is the highest win% you have seen a trading system, automated or manual, have? ElectricWiz Traders Hideout 29 May 8th, 2012 07:00 PM
NINJA TRADER manual entry / management of......... mdsvtr NinjaTrader 3 November 5th, 2010 04:49 AM


All times are GMT -4. The time now is 06:31 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.17 seconds with 40 queries on phoenix via your IP 107.20.115.174