Buy on Close(Today) - NinjaTrader Programming | futures io social day trading
futures io futures trading


Buy on Close(Today)
Updated: Views / Replies:2,103 / 4
Created: by Mondrakete 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
 

Buy on Close(Today)

  #1 (permalink)
Trading Apprentice
Germany
 
Futures Experience: Beginner
Platform: Ninja Trader
Favorite Futures: Stocks
 
Posts: 24 since Feb 2011
Thanks: 1 given, 0 received

Buy on Close(Today)

Hi folks,

I'm pretty new to NT and Mike's forum.
I'm challenged by a actually simple, but with NT seemingly unfeasable aproach.
I want to implement a simple strategy based on daily data that operates on a Close to Close base.
The logic is going to be:

If the Close today is higher than the Close yesterday, buy on today's close and sell at tomorrows close.
Short analog.


The system is always in market and it's backtesting only.
NT Support already told me that this kind of apprach is unpossible at least using the managed approach of ordering.

Does anybody know how to solve that issue, if necessary using the unmanged approach?
One has to force NT somehow to execute the order on the bar where it's generated and to
excecute it at the Close-price of the today's bar..
Using Index -1 within managed approach yields to weird behavior, not all orders are excecuted.

Any ideas or should I forget about NT?

Cheers and thanks in advance!

Stephan

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)
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,572 given, 3,982 received


The problem is that you have this information:
1#"If the Close today is higher than the Close yesterday"
at the close itself, so it's too late to
2#"buy on today's close"...
An idea is maybe to add another time frame, let's say a 10 seconds bar, and not use the Close for 1# but the Close minus 10 seconds.

Success requires no deodorant! (Sun Tzu)
Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Germany
 
Futures Experience: Beginner
Platform: Ninja Trader
Favorite Futures: Stocks
 
Posts: 24 since Feb 2011
Thanks: 1 given, 0 received

-Unfurtunately I don't have another timeframe, it's daily data only back to the 70's.
I tried it like this:

if (Close[-1] >Close[0])
{
EnterLongLimit(1, Close[-1], "Long-Entry");
}

short analog,

and to exit on the actual bar with:

if (BarsSinceEntry("Long-Entry") == 0 )
{

ExitLongLimit(Close[-1], "Exit Long", "Long-Entry");
}

In case of a reversion NT generates a close oder by itself and
I used some code to suppress strategy generated exit orders in this case.
But it still doesn't always work. NT suppresses some of the entry orders.
According to support managed orders are not able to deal with [-1].

May be an unmanaged order system helps me out-but I'm totally new to this approach and don't know
if that might work.

Reply With Quote
 
  #5 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

It has been pretty well explained here: Buy on Close (Today) - NinjaTrader Support Forum

and in Sam's comments.

Use Excel or Matlab instead... something that doesn't care if you are violating reality .

Reply With Quote

Reply



futures io > > > > > Buy on Close(Today)

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
New margins for gold, silver, etc from market close today MXASJ News and Current Events 0 January 21st, 2011 12:13 AM
ZN close JTrain Bonds and Interest Rates Trading 1 January 10th, 2011 11:51 AM
Volitility indicator question - Open - Open / open - close / close to open andresimon NinjaTrader 2 September 27th, 2010 01:33 AM
Close[0] not waiting until bar close dsraider NinjaTrader Programming 4 February 11th, 2010 06:49 PM
Buy@Ask - Buy@Bid !!! RJay Traders Hideout 15 September 5th, 2009 10:30 PM


All times are GMT -4. The time now is 01:50 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-13 in 0.09 seconds with 19 queries on phoenix via your IP 54.92.201.232