Multi Time Frame Strategy Cancellation - futures io
futures io



Multi Time Frame Strategy Cancellation


Discussion in NinjaTrader

Updated
    1. trending_up 3,110 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Multi Time Frame Strategy Cancellation

(login for full post details)
  #1 (permalink)
 jthom 
Sydney / Australia
 
Experience: Intermediate
Platform: NT
Broker: AMP
Trading: Oil
 
Posts: 118 since Jun 2009
Thanks: 128 given, 105 received

Hello,

I currently have a multitimeframe strategy setup on 4 range and 1 range bars. 4 range handle the entry conditions and initial entry order, while the 1 range series handles order cancellation if the close price moves 2 ticks away from entry order.
The problem im having is that once an order has been placed, a cancellation preceeds it immediately.

 
Code
                            
if (Position.MarketPosition == MarketPosition.Flat && BarsInProgress == 0) { 
  if (
Bla Bla) {
     
entryOrder1 EnterLongLimit(0trueDefaultQuantityClose[0] - TickSize"Long 1a");
     
Buy true;}
if (
Position.MarketPosition == MarketPosition.Flat && BarsInProgress == 1) {
   if (
Buy == true && entryOrder1 != null && entryOrder1.LimitPrice != null && Close[0] == entryOrder1.LimitPrice TickSize) { 
   
CancelOrder(entryOrder1);
   
Buy false;} 


The issue seems to be the use of Close[0] in BarsArray = 1. If I use Closes[0][0], it will wait for next 4 range bar to close before cancelling order, which is too far away.
I cannot use Indicator(BarsArray[1])[0] command as the indicator is custom 3rd party.

Any ideas on how to combat this?

Thanks

James

Started this thread Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(96 thanks from 15 posts)
looks_twoSalao's Journalby Salao
(32 thanks from 7 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(26 thanks from 10 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(13 thanks from 8 posts)
looks_5Maybe a little bit different journalby Malykubo
(9 thanks from 8 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Would You Sell Your System?
71 thanks
The Crude Dude Oil Trading System
39 thanks
Big Mike in Ecuador
36 thanks
futures io site changelog and issues/problem reporting
24 thanks
The New Micro Contract - MICRO BITCOIN coming May 2021
23 thanks
 
(login for full post details)
  #3 (permalink)
kconradbell
Dallas Texas United States
 
 
Posts: 5 since Apr 2014
Thanks: 1 given, 0 received


James,

Did you ever get this figured out? I'm having the same problem.

Thanks,

Conad

Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Multi Time Frame Strategy Cancellation


Last Updated on October 9, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



Copyright © 2021 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