Reversing A position - NinjaTrader Programming | futures io social day trading
futures io futures trading


Reversing A position
Updated: Views / Replies:1,694 / 6
Created: by NJAMC Attachments:0

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
 
Thread Tools Search this Thread
 

Reversing A position

  #1 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received

Reversing A position

Sorry for the simple question, but I can't find the concrete answer off-hand.

I am looking to reverse a position in one bar using the built in NT7 functions. I can do this unmanaged trading but don't have time to setup LOM right now. I am hoping someone can spell this out as it is not straight forward without causing an over-fill or exiting on one bar and the entering on the next bar.

What I would like to do for example is to go from one contract Long to one contract Short with market orders.

So during one bar, I have entered long with:
EnterLong();

So now I am Long and want to reverse the position so I tried the obvious with simply triggering:
EnterShort();

Unfortunately, this seem to only Sell 1 contract leaving me flat, similar to "ExitLong()" would have done. Do I need to
EnterShort(2);

I am pretty short, I get an error if in the same bar I call both Exit and Enter:
ExitLong();
EnterShort();

Thanks, hopefully @Fat Tails has a quick answer here.... I have certainly lost touch with the build in nuanced of NT7 Order Management...

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


The way I did it a few years ago was to use a 1 range secondary series and submit orders to it. So every tick price moves I can enter or exit.

Maybe a better way?

Sent from my LG Optimus G Pro

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #4 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received


Big Mike View Post
The way I did it a few years ago was to use a 1 range secondary series and submit orders to it. So every tick price moves I can enter or exit.

Maybe a better way?

Sent from my LG Optimus G Pro

@Big Mike,

Thanks, I already have a second and third series. I could probably add a 4th, but it would be nice to know how to do this right...

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received


NJAMC View Post
@Big Mike,

Thanks, I already have a second and third series. I could probably add a 4th, but it would be nice to know how to do this right...

If you equate "right" to "NinjaTrader submitting an Entry, Exit, and another Entry order, all on the same bar series" then I believe @NinjaTrader Ray will confirm that is not possible. But hey I could be wrong, so maybe someone else has a better idea than using the 1-range secondary series. Obviously if you are really fanatical about it you could use a 1-tick series, but it is far more expensive.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #6 (permalink)
Elite Member
Cincinnati Ohio
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Futures Broker
Favorite Futures: AUD
 
Silver Dragon's Avatar
 
Posts: 1,597 since Feb 2011
Thanks: 3,860 given, 3,318 received


NJAMC View Post
Sorry for the simple question, but I can't find the concrete answer off-hand.

I am looking to reverse a position in one bar using the built in NT7 functions. I can do this unmanaged trading but don't have time to setup LOM right now. I am hoping someone can spell this out as it is not straight forward without causing an over-fill or exiting on one bar and the entering on the next bar.

What I would like to do for example is to go from one contract Long to one contract Short with market orders.

So during one bar, I have entered long with:
EnterLong();

So now I am Long and want to reverse the position so I tried the obvious with simply triggering:
EnterShort();

Unfortunately, this seem to only Sell 1 contract leaving me flat, similar to "ExitLong()" would have done. Do I need to
EnterShort(2);

I am pretty short, I get an error if in the same bar I call both Exit and Enter:
ExitLong();
EnterShort();

Thanks, hopefully @Fat Tails has a quick answer here.... I have certainly lost touch with the build in nuanced of NT7 Order Management...


You could try this; Double the position size to take out the current position and enter a new one.

 
Code
if (Position.MarketPosition == MarketPosition.Long)
					{
					EnterShort(2, "Reverse");	
					}


Robert

nosce te ipsum

You make your own opportunities in life.
Reply With Quote
The following user says Thank You to Silver Dragon for this post:
 
  #7 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received


Silver Dragon View Post
You could try this; Double the position size to take out the current position and enter a new one.

 
Code
if (Position.MarketPosition == MarketPosition.Long)
					{
					EnterShort(2, "Reverse");	
					}


Robert

Thanks @Silver Dragon,

This seems to work, just need to add an else statement to fire a single order if not Long.

Hopefully this is something that gets clarified with NT8.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
The following user says Thank You to NJAMC for this post:

Reply



futures io > > > > > Reversing A position

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
reversing ankityadav MetaTrader 3 August 24th, 2013 10:02 PM
Reversing Line gecko NinjaTrader Programming 3 February 1st, 2013 12:10 PM
Contract Rollover: Adopt Real World Position and manage per previous position entry RM99 EasyLanguage Programming 3 May 30th, 2012 07:55 AM
New Home Sales Plunge To Record Low, Reversing Gains Quick Summary News and Current Events 0 June 23rd, 2010 12:00 PM
Reversing DavidHP Platforms and Indicators 4 September 18th, 2009 12:44 AM


All times are GMT -4. The time now is 10:27 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.10 seconds with 19 queries on phoenix via your IP 54.221.76.68