Started: December 15th, 2009 (09:42 AM) by kaywai Views / Replies: 3,308 /
Last Reply: December 9th, 2010 (03:33 AM) Attachments:
Welcome to futures.io.
This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.
We are fundamentally different than most other trading forums:
We work extremely hard to keep things positive on our forums.
We do not tolerate rude behavior, trolling, or vendor advertising in posts.
We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
We expect our members to participate and become a part of the community. Help yourself by helping others.
You'll need to
in order to view the content of the threads and start contributing to our community.
It's free and simple, and we will never resell your private information.
-- Big Mike
December 8th, 2010, 03:19 PM
11 ( )
Futures Experience: Advanced
Platform: NinjaTrader, TOS, Multicharts, Open Source various
Favorite Futures: FDAX, cable/yen, FX, options on commodities
Posts: 67 since Jun 2009
Thanks: 16 given,
Will be valid for 1 bar. Of course if you issue this order on each bar then until you stop doing it the order will exist.
How do you want me to respond to it?
Baruch No need. I just looked over the sample live until cancelled strategy and you have to set false in the enter limit section in order for the order to cancel after one bar close.
If set to true then the order is kept alive until cancelled.
Sample strat from the NT site:
/* CrossAbove/Below conditions usually do not evaluate to true for several bars in a row.
If we submitted with liveUntilCancelled = false our order would be cancelled on the next bar as the condition is no longer true.
If we wanted to persist our order we would want to use liveUntilCancelled = true. */
if (CrossAbove(SMA(Fast), SMA(Slow), 1))
/* This order is kept alive until explicitly cancelled. For information on how to explicitly cancel this order please see this reference sample:
EnterLongLimit(0, true, DefaultQuantity, entryPrice, "live until cancelled long");
if (Close > Open)
// This EnterLongLimit is cancelled if the conditions that caused it are no longer true. It is then resubmitted upon the conditions being true again.
EnterLongLimit(0, false, DefaultQuantity, entryPrice, "long order to be resubmitted");
if (CrossBelow(SMA(Fast), SMA(Slow), 1))
Strategy: Keeping orders alive - NinjaTrader Support Forum
December 9th, 2010, 03:33 AM
12 ( )
Futures Experience: Intermediate
Favorite Futures: eminis
Posts: 322 since Jun 2009
Thanks: 6 given,
Limit orders have 6 overloads. Only one has "live until cancel true/false". All other are valid for only one bar unless you renew it on the next bar. The one that has LUC you only need if you have more than one time frame in your strategy. So why use it if you don't have more TF's.
All times are GMT -4. The time now is