Strategy to exit manually entered trades? - NinjaTrader | futures io social day trading
futures io futures trading


Strategy to exit manually entered trades?
Updated: Views / Replies:2,319 / 14
Created: by Azrael 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
 

Strategy to exit manually entered trades?

  #1 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received

Strategy to exit manually entered trades?

Hi guys

Was wondering, is it possible to script an exit only strategy for ninjatrader?

Say, once I manually entered a Long position, can it automatically queue an exit strategy for me at 20 ticks as Profit target and 10 ticks as Stop Loss from the close of the last bar?

Tried fooling around with the strategy wizard, but couldn't seem to get it done. =(

Reply With Quote
 
  #2 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received

Why not using an ATM? It was made for this.
If you want to enter manually and then have an exit only strategy, you will need to use unsupported and undocumented methods, so it's maybe not the good solution.

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #3 (permalink)
Elite Member
Luxembourg
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB / Kinetick
Favorite Futures: ZN
 
Fadi's Avatar
 
Posts: 482 since Apr 2012
Thanks: 650 given, 625 received



Azrael View Post
Hi guys

Was wondering, is it possible to script an exit only strategy for ninjatrader?

Say, once I manually entered a Long position, can it automatically queue an exit strategy for me at 20 ticks as Profit target and 10 ticks as Stop Loss from the close of the last bar?

Tried fooling around with the strategy wizard, but couldn't seem to get it done. =(

It is called ATM strategy

Successful people will do what unsuccessful people won't or can't do!
Reply With Quote
 
  #4 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received

Thanks for the replies guys

But my issue here is setting the PT and SL based on the close of the last bar. Not on my current entry point.

Could it be done? Or is it already done? 0_0

Reply With Quote
 
  #5 (permalink)
Elite Member
Dallas, TX
 
Futures Experience: Beginner
Platform: Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: ZN, 6E
 
gulabv's Avatar
 
Posts: 284 since May 2010
Thanks: 159 given, 155 received

Use Close[1] to determine closing price of the last bar

Reply With Quote
 
  #6 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received


gulabv View Post
Use Close[1] to determine closing price of the last bar

So that is for the Ninjatrader Strategy or ATM (at least I don't see how you can edit the ATM)? o_O

Reply With Quote
 
  #7 (permalink)
Elite Member
Munich, Germany
 
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Broker/Data: IB, NinjaTrader Brokerage
Favorite Futures: ES,NQ,6E
 
Posts: 62 since Feb 2010
Thanks: 15 given, 22 received

stop loss and target for ATM is based on entry price
It is not possible to set from Close of entry bar in ATM

To do this you have to use unsupported NT code

Reply With Quote
 
  #8 (permalink)
Elite Member
Luxembourg
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB / Kinetick
Favorite Futures: ZN
 
Fadi's Avatar
 
Posts: 482 since Apr 2012
Thanks: 650 given, 625 received

I guess I now understand your request a bit better

Agree, you can't use the ATM for that, you will have to write a strategy that will check your position at the close of each bar.
Then if the position is not null; i.e. you already have an open position in your portfolio, the strategy runs a series of checks and decides whether you maintain or close that position.

Otherwise, if no positions are open, all the code is skipped and the algorithm waits for next bar's closure to run again.

Cheers
Fadi

Successful people will do what unsuccessful people won't or can't do!
Reply With Quote
 
  #9 (permalink)
Elite Member
Luxembourg
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB / Kinetick
Favorite Futures: ZN
 
Fadi's Avatar
 
Posts: 482 since Apr 2012
Thanks: 650 given, 625 received

You can use something like this if you want:

if (position.MarketPosition == MarketPosition.Flat)
{
// Do something
}


if (position.MarketPosition == MarketPosition.Long)
{
// Do something
}


if (position.MarketPosition == MarketPosition.Short)
{
// Do something
}

Successful people will do what unsuccessful people won't or can't do!
Reply With Quote
 
  #10 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,573 given, 3,982 received


It won't work here, that will only show the position opened by the strategy itself, not the trades opened manually.



Fadi View Post
You can use something like this if you want:

if (position.MarketPosition == MarketPosition.Flat)
{
// Do something
}


if (position.MarketPosition == MarketPosition.Long)
{
// Do something
}


if (position.MarketPosition == MarketPosition.Short)
{
// Do something
}


Success requires no deodorant! (Sun Tzu)
Reply With Quote

Reply



futures io > > > > Strategy to exit manually entered trades?

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
Entry/Exit optimization strategy vetl Elite Automated Trading 11 June 20th, 2014 08:13 AM
Strategy Entry/Exit Visualization zeller4 NinjaTrader Programming 6 November 8th, 2012 11:22 AM
Exit Only Strategy ? buylosellhi MultiCharts 6 November 15th, 2011 09:38 PM
Fed Weighed More Stimulus—As Well as an Exit Strategy Quick Summary News and Current Events 0 July 12th, 2011 04:40 PM
Timed exit in auto strategy nanobiotech NinjaTrader Programming 2 December 28th, 2009 08:57 PM


All times are GMT -4. The time now is 10:51 PM.

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-13 in 0.12 seconds with 19 queries on phoenix via your IP 54.226.113.250