Sam028 EOD Robot - futures io
futures io



Sam028 EOD Robot


Discussion in Trading Journals

Updated
      Top Posters
    1. looks_one sam028 with 39 posts (11 thanks)
    2. looks_two Big Mike with 9 posts (1 thanks)
    3. looks_3 Gary with 6 posts (0 thanks)
    4. looks_4 RJay with 3 posts (0 thanks)
      Best Posters
    1. looks_one edgefirst with 1 thanks per post
    2. looks_two shodson with 0.5 thanks per post
    3. looks_3 sam028 with 0.3 thanks per post
    4. looks_4 Big Mike with 0.1 thanks per post
    1. trending_up 17,812 views
    2. thumb_up 18 thanks given
    3. group 13 followers
    1. forum 81 posts
    2. attach_file 13 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,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
 

Sam028 EOD Robot

(login for full post details)
  #51 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,184 since Jun 2009
Thanks: 32,683 given, 99,758 received

or can also add another time frame in initialize

Add(PeriodType.Minute, 30);

and then submit the limit order to that time frame so it will last 30 minutes before being canceled or etc.

Second you can use limit orders but set it to never cancel.

Third you can use market orders.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
Big Mo Indicator for NT8
NinjaTrader
NT8 Order Management Strategy
The Elite Circle
Multiple brokerage accounts within one or more brokers
Traders Hideout
Multi Time Frame High/Low/Median levels
NinjaTrader
Dissect open interest data
Crypto Futures
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
123 thanks
ApexTraderFunding.com experience and review
11 thanks
Artificial Intelligence (AI) and Chat GPT
7 thanks
Dax market profile (FDAX, TPO)
7 thanks
Want your NinjaTrader indicator created, free?
7 thanks
 
(login for full post details)
  #52 (permalink)
 sam028 
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,732 since Jun 2009
Thanks: 3,811 given, 4,591 received


Big Mike View Post
or can also add another time frame in initialize

Add(PeriodType.Minute, 30);

and then submit the limit order to that time frame so it will last 30 minutes before being canceled or etc.

Second you can use limit orders but set it to never cancel.

Third you can use market orders.

Mike

Sure for first and third, the second is supposed to be an "advanced method variation reserved for experienced programmers ...", hmm...

The fourth solution: keep it like this, it's not so crazy, if the order is not filled during the current bar, well, it's maybe a bit risky to keep the order open.
Anyway, now I know .

ps: I'm not sure to know what this crazy pilot smiley really means, but I like it .

Follow me on Twitter Started this thread Reply With Quote
 
(login for full post details)
  #53 (permalink)
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 320 given, 622 received



sam028 View Post
Ok, why not, now I know it. This detail was a 4 ES pts detail (200$), but that's a good lesson: I'll go back to market orders next week.

Sorry if I'll ask silly question, but could you please elaborate a bit more on "what you know now", as I don't understand what went wrong so that your order was not filled. Is what happened against the design of a limit order - a bug in ninjatrader handling of limit orders or you simply didn't know how limit orders work.
Thanks

Reply With Quote
 
(login for full post details)
  #54 (permalink)
 sam028 
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,732 since Jun 2009
Thanks: 3,811 given, 4,591 received


gregid View Post
Sorry if I'll ask silly question, but could you please elaborate a bit more on "what you know now", as I don't understand what went wrong so that your order was not filled. Is what happened against the design of a limit order - a bug in ninjatrader handling of limit orders or you simply didn't know how limit orders work.
Thanks

I didn't realize the method I use, EnterLongLimit(arg1,arg2,arg3), has this behavior (the order, submit during bar x, was canceled on bar x+1 if not filled).

Follow me on Twitter Started this thread Reply With Quote
The following user says Thank You to sam028 for this post:
 
(login for full post details)
  #55 (permalink)
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
 
RJay's Avatar
 
Posts: 688 since Jun 2009
Thanks: 751 given, 785 received


sam028 View Post
I didn't realize the method I use, EnterLongLimit(arg1,arg2,arg3), has this behavior (the order, submit during bar x, was canceled on bar x+1 if not filled).

sam028,

I have a thought,

If you placed the order on a separate chart, say with month bars or range bars set to a thousand, your orders won't get canceled becouse the bar won't complete with the order pending.

RJay

Reply With Quote
 
(login for full post details)
  #56 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
 
Posts: 476 since Jun 2009
Thanks: 1,403 given, 403 received

Sam028,

I'm curious if you're using IOrder or not...

Also, if you're using something similar to check status of limit orders:
 
Code

// If the order state is terminal, reset the order id value
if (status1[2] == "Filled" || status1[2] == "Cancelled" || status1[2] == "Rejected")
{
orderId1 = string.Empty;
}
 
or
 
Code

if (status1[2] == "Working" &&//THIS IS ALL NEW TO BE CHECKED
FirstTickOfBar &&
//Uptrend == true && 
status1[2] != "Filled"//&&
//StochUp == true &&
//StochDown != true
)
{
AtmStrategyCancelEntryOrder(orderId1);
 
if (triggerLong
)
{
 
AtmStrategyCancelEntryOrder(orderId1);
// LongTrigger3=((Math.Round(Medians[2][1]*10))/10 + TriggerOffset*TickSize);
// AtmStrategyChangeEntryOrder(LongTrigger3, 0, orderId);
atmStrategyId1 = GetAtmStrategyUniqueId();//testing turned on or off
}
I'm still playing with the above code (was trying to get a "simple" limit order strat working) but still having trouble getting the unfilled limit order reset to a new level if not filled in 1 or 2 bars. I believe the strat where I pulled this out of was having problems due to the attempted use of 2 independent contracts so that 1 could have a target profit and the second could have a trailing stop with it. Still on the "drawing board". Do you have any "resetting of limit orders" types of strats that could be shared?


reminds me of the Wright Brothers ... sometimes I feel like I'm still in the bicycle shop - dreaming of future days of flying above the clouds ...

Kirk

Reply With Quote
 
(login for full post details)
  #57 (permalink)
 sam028 
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,732 since Jun 2009
Thanks: 3,811 given, 4,591 received


RJay View Post
sam028,

I have a thought,

If you placed the order on a separate chart, say with month bars or range bars set to a thousand, your orders won't get canceled becouse the bar won't complete with the order pending.

RJay

@RJay: Sure, this is what Big Mike says in post #51
@Zeller4: no, sorry, I don't have examples for this. So many thing can go wrong in an ATS, if you can keep order management as simple as possible, it's better.

Follow me on Twitter Started this thread Reply With Quote
 
(login for full post details)
  #58 (permalink)
 Gary 
Near Dallas, Texas, US
 
Experience: Advanced
Platform: NinjaTrader
Broker: ZenFire
Trading: CL
 
Gary's Avatar
 
Posts: 1,070 since Jun 2009
Thanks: 502 given, 2,238 received

- Sorry, couldn't resist. Feel free to remove this post.

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #59 (permalink)
 shodson 
OC, California, USA
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,971 since Jun 2009
Thanks: 533 given, 3,694 received

@sam028 - You say you put on the trade at the close of the market (I'm assuming 4pm NY time) but the Globex session on index futures closes at 4:15pm NY time so basically you have 15 minutes to do what it's going to do, correct? Otherwise you're technically holding it overnight if you're still in a position at the beginning of the next Globex session at 5pm, correct? Take the ES as an example.

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #60 (permalink)
 sam028 
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,732 since Jun 2009
Thanks: 3,811 given, 4,591 received


Day 18: +152.5$

But, I've been very lucky, and it should have been a negative day. I've been freezing the Virtualbox which host this NT instance, then wake it up, refresh the charts, connect the second broker, add the strats... But it seems that this is not a good idea, because when one robot was buying a contract for one broker, the other robot was selling the same on the broker. So it should have been a flat day, but 2 contracts were not filled (limit orders).
So, another lesson: restart NT every days

Week 1: +977.5$ (+1217.5) before com
Week 2: +130$
before com
Week 3: +1180$ before com
Week 4: -152.5
$ before com
From the beginning: +1994.5$ (+2255) before com

Follow me on Twitter Started this thread Reply With Quote


futures io Trading Community Trading Journals > Sam028 EOD Robot


Last Updated on April 24, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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