NexusFi: Find Your Edge


Home Menu

 





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 caprica with 3 posts (0 thanks)
      Best Posters
    1. looks_one dsherman with 1 thanks per post
    2. looks_two edgefirst with 1 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 19,661 views
    2. thumb_up 18 thanks given
    3. group 13 followers
    1. forum 81 posts
    2. attach_file 13 attachments




 
Search this Thread

Sam028 EOD Robot

  #51 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599

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 the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #52 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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
  #53 (permalink)
 
gregid's Avatar
 gregid 
Wrocław, Poland
 
Experience: Intermediate
Platform: NinjaTrader, Racket
Trading: Ockham's razor
Posts: 650 since Aug 2009
Thanks Given: 320
Thanks Received: 623



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
  #54 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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
Thanked by:
  #55 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


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
  #56 (permalink)
 zeller4 
Orlando Florida
 
Experience: Intermediate
Platform: NT8
Trading: CL, NQ, ES, RTY
Posts: 477 since Jun 2009
Thanks Given: 1,416
Thanks Received: 404

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
  #57 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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
  #58 (permalink)
 
Gary's Avatar
 Gary 
Near Dallas, Texas, US
 
Experience: Advanced
Platform: NinjaTrader
Broker: ZenFire
Trading: CL
Posts: 1,072 since Jun 2009
Thanks Given: 502
Thanks Received: 2,239

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

Visit my NexusFi Trade Journal Reply With Quote
  #59 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709

@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 NexusFi Trade Journal Reply With Quote
  #60 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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




Last Updated on April 24, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts