Strategy market orders - NinjaTrader Programming | futures io social day trading
futures io futures trading


Strategy market orders
Updated: Views / Replies:1,514 / 5
Created: by zeller4 Attachments:1

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 market orders

  #1 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received

Strategy market orders

Big Mike, samo028,

i've got a sample strat from NT (Vervoort) that i'm testing entries with. I know the NT market orders take essentially a "worst-case scenario" for the fills of those orders. I've been working with limit orders to improve the position entry but my question revolves around the use of this type of code snippet with EnterLong(), EnterShort():
 
Code
 
 
Initialize section contains 
CalculateOnBarClose = true;
 
OnBarUpdate section contains
 
if (CrossAbove(ZeroLagTEMA(Typical, Period), ZeroLagHATEMA(Period), 1))
{
EnterLong(1 , "Long-1");
DrawVerticalLine("VertHL"+CurrentBar,0,Color.Blue,DashStyle.DashDotDot,2);
}
if (CrossBelow(ZeroLagTEMA(Typical, Period), ZeroLagHATEMA(Period), 1))
{
EnterShort(1, "Short-1");
DrawVerticalLine("VertHS"+CurrentBar,0,Color.Red,DashStyle.DashDotDot,2);
}

I've put vertical lines on the chart to show where the setups occurred. This appears to take trades on the open of the next candle. If this is the norm, then I understand.

But, in some of my other strats, when comparing manual entries with an ATM strat vs an automatic strat, the actual order appears to be LATE AND WORSE for the entry.
Do you know of any way to enter trades with the automatic strategy that would show a more realistic entry and not just the worst case?
Have you been using any bar "timer" to show entering before the close of the last bar ie (# of seconds left in the bar, # of ticks remaining, etc.)?

Thanks for you help.


KZ

Attached Thumbnails
Strategy market orders-cl-10-09-8_21_2009-4-range-.jpg  
Reply With Quote
 
  #2 (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,356 given, 83,237 received

Entry is always going to paint on the bar after the actual bar used to determine whether or not it should enter, if using COBC false.

If bar 15,000 is used to determine if it should go long or short, the entry will occur on bar 15,001, in other words. This is normal, and for a market order you would see it occur at the Open of the 15,001 bar most of the time unless there is slippage.

Limit orders and strategies are a big problem. I can't get into all the issues because there are so many. Stick with market orders until you are ready to spend a year troubleshooting and learning the finer point of NT's nuances like I have.

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
 
  #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,356 given, 83,237 received


btw, an easy way to prove/disprove "late" entries. Print the bar stats right when your 'signal trigger' occurs and see what they say.

Keep in mind, a market order will us the GetCurrentAsk() [long] or GetCurrentBid() [short], so Close[0] is not going to be the fill price in most cases, it will be the Open of the bar that does not yet exist when this Print() statement was executed, but you can see it on screen.

 
Code
                            

Print(Time[0] + " (# " CurrentBar "):  Close[0] was " Close[0]); 
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
The following user says Thank You to Big Mike for this post:
 
  #4 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received


Big Mike View Post
...
Limit orders and strategies are a big problem. I can't get into all the issues because there are so many. Stick with market orders until you are ready to spend a year troubleshooting and learning the finer point of NT's nuances like I have.

Mike

well, i knew it would be a long process, I guess i'm about half-way there then! I've heard about several of the issues and that's why i'm still working with the market orders...

also, makes sense about the print statements. i'll give that a try with the Close[0] is the same as the Open of the new bar.

thanks, Mike
Kirk

Reply With Quote
 
  #5 (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,574 given, 3,983 received

That's another reason why we should all be very very careful with strategies backtests.
So many strange results...
In my opinion, the backtest process with NT is fine for having the "big picture", but nothing, absolutly nothing (even market replay) replace a strategy on a real account with a real data feed.

Reply With Quote
 
  #6 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

Mike, do you know if the NT issues with limit orders will be corrected in NT7?

Reply With Quote

Reply



futures io > > > > > Strategy market orders

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
Market If Touched orders for NT 7? vinceb NinjaTrader 3 October 27th, 2017 07:20 PM
Strategy to monitor ALL account orders? SetFreeByTruth NinjaTrader Programming 18 November 14th, 2014 09:14 AM
What is going on here (my strategy isn't producing orders) ???? jmejedi NinjaTrader Programming 5 June 7th, 2011 08:11 PM
Need Help with simple strategy on canceling orders floyd084 NinjaTrader Programming 2 February 22nd, 2011 02:34 AM
[NinjaTrader]    Market Replay to backtest strategy symphys Platforms and Indicators 5 September 11th, 2010 04:24 PM


All times are GMT -4. The time now is 03: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-18 in 0.11 seconds with 20 queries on phoenix via your IP 54.163.209.109