NexusFi: Find Your Edge


Home Menu

 





THREE SET UPS


Discussion in Trading Journals

Updated
      Top Posters
    1. looks_one Jeff Castille with 215 posts (430 thanks)
    2. looks_two cunparis with 146 posts (154 thanks)
    3. looks_3 shodson with 125 posts (211 thanks)
    4. looks_4 Fat Tails with 73 posts (189 thanks)
      Best Posters
    1. looks_one Fat Tails with 2.6 thanks per post
    2. looks_two Jeff Castille with 2 thanks per post
    3. looks_3 shodson with 1.7 thanks per post
    4. looks_4 cunparis with 1.1 thanks per post
    1. trending_up 252,656 views
    2. thumb_up 1,369 thanks given
    3. group 124 followers
    1. forum 1,073 posts
    2. attach_file 239 attachments




 
Search this Thread

THREE SET UPS

  #291 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203

For the record, I have been creating my strategies using NJ Wizard (learn how to modify the code to meet my needs) and cut-and-paste from other sample strategies. Am not in a position to share them though the Inside Bar ones seem so far working normal.

Here they come my Entry codes if they may help some of you (though I doubt it) ..

The following for the InsideBarLong strategy:

 
Code
 
protectedoverridevoid OnBarUpdate()
{ 
// put at top of OnBarUpdate()
if (Historical && !BackTestEnable) 
return;
 
//Definition of Inside Bar Entry
int bo = CurrentBar < Bars.Count - 1 ? 0 : (CalculateOnBarClose ? 0 : 1);
if (CurrentBar == 0) return;
 

// Resets the stop loss to the original value when all positions are closed
if (Position.MarketPosition == MarketPosition.Flat)
{
debug ("Reset Stops");
SetStopLoss("", CalculationMode.Ticks, stoplossticks, false);

 
//Condition set 1 Go Long
if (High[1 + bo] >= High[bo] && Low[1 + bo] <= Low[bo])
{
debug ("Entering LongStop");
EnterLongStop(DefaultQuantity, High[0]+1*TickSize,"");
DrawArrowUp("Long" + CurrentBar, true, 0, Low[0] - (4*TickSize), Color.Lime);
}
Replace the Go Long condition for the InsideBarShort strategy:

 
Code
 
//Condition set 2 Go Short
if (High[1 + bo] >= High[bo] && Low[1 + bo] <= Low[bo])
{
debug ("Entering ShortLimit");
EnterShortStop(DefaultQuantity, Low[0]-1*TickSize,"");
DrawArrowDown("Short" + CurrentBar, true, 0, High[0] + (4*TickSize), Color.Red);
}
Note: Both Outside Bar and Reversal Bar strategies are too advanced for me. Will focus on the Inside Bar one LOL!

Beth

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #292 (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


wgreenie View Post
For the record, I have been creating my strategies using NJ Wizard (learn how to modify the code to meet my needs) and cut-and-paste from other sample strategies. Am not in a position to share them though the Inside Bar ones seem so far working normal.

I tried creating an OCO-type order set once the inside bar forms, but I kept getting errors, so now I just use a 1-range bar and if the high or low of the inside bar is exceeded I place a market order, so I'm going to live with the slippage.

Another approach would be to look at how close to the boundaries of the bar are and if it is close to the top of the inside bar then you place your buy stop order, but then if it moves down towards the bottom then cancel the buy stop order and enter a sell stop order. Basically, you're playing pickle with price until it exceeds one side of the inside bar.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #293 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203



shodson View Post
I tried creating an OCO-type order set once the inside bar forms, but I kept getting errors, so now I just use a 1-range bar and if the high or low of the inside bar is exceeded I place a market order, so I'm going to live with the slippage.

Another approach would be to look at how close to the boundaries of the bar are and if it is close to the top of the inside bar then you place your buy stop order, but then if it moves down towards the bottom then cancel the buy stop order and enter a sell stop order. Basically, you're playing pickle with price until it exceeds one side of the inside bar.

Hi Shodson

I emailed NJ on how to code a pair of breakout orders in a 6.5 strategy. Here it comes his response:

Quote

This isn't possible with our managed order system in 6.5. You would run into our internal order handling rules. ( Overview)

Methods that generate orders (excluding market orders) to *enter* a position will be ignored if:
* A position is open and an order submitted by an exit method (_ExitLongLimit()_ ( ExitLongLimit()) for example) is active and the order is used to open a position in the opposite direction
* A position is open and an order submitted by a set method (_SetStopLoss()_ ( SetStopLoss()) for example) is active and the order is used to open a position in the opposite direction
* *The strategy position is flat and an order submitted by an enter method (*_*EnterLongLimit()*_ ( EnterLongLimit())* for example) is active and the order is used to open a position in the opposite direction*

This is possible with unmanaged order submission that we introduced in version 7. See here for an introduction to unmanaged orders. ( Unmanaged Approach)

Unquote

I will continue sim-trading both Long and Short strategies and manage them manually.

Beth

Visit my NexusFi Trade Journal Reply With Quote
  #294 (permalink)
 
cunparis's Avatar
 cunparis 
Paris, France
 
Experience: Advanced
Platform: Market Delta & Ninjatrader
Trading: ES
Posts: 2,565 since Jun 2009
Thanks Given: 1,162
Thanks Received: 2,093

Tradestation had an inside bar while IQFeed on market delta & ninja did not. Shame on tradestation. Pretty rare for minute bars to be so far off.


Follow me on Twitter Reply With Quote
  #295 (permalink)
 
Jeff Castille's Avatar
 Jeff Castille 
Northern California
 
Experience: Intermediate
Platform: Ninja Trader
Broker: Amp Futures/ Zen-Fire
Trading: YM and CL
Posts: 2,109 since Jun 2009
Thanks Given: 1,783
Thanks Received: 3,303

A couple of nice inside bar winners.........NO losers !!

As far as the "testing" goes.........I'm NOT going to pay ANY attention to it UNTIL a way is found to incorporate news.

Jeff

Attached Thumbnails
Click image for larger version

Name:	CL 08-10  6_28_2010 (15 Min).jpg
Views:	303
Size:	109.7 KB
ID:	16213  
Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #296 (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


Jeff Castille View Post
A couple of nice inside bar winners.........NO losers !!

As far as the "testing" goes.........I'm NOT going to pay ANY attention to it UNTIL a way is found to incorporate news.

Jeff

Yeah I missed those

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #297 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


Jeff Castille View Post
As far as the "testing" goes.........I'm NOT going to pay ANY attention to it UNTIL a way is found to incorporate news.

Jeff

As a discretionary trader, that easy. You simply don't trade around news, but I wouldn't believe any discretionary (as opposed to mathematical) backtesting.

For an ATS, code a parameter to carve out news time or simply use a button indicator. Super easy.

Reply With Quote
  #298 (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


Jeff Castille View Post
As far as the "testing" goes.........I'm NOT going to pay ANY attention to it UNTIL a way is found to incorporate news.

How far in front of and after a news event do you wait before trading again? What if an inside bar formed inside of the news window, ignore it right? Or you would take it and you just avoid entering trades during the news window, but don't necessarily avoid their candles, right?

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #299 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


shodson View Post
How far in front of and after a news event do you wait before trading again? What if an inside bar formed inside of the news window, ignore it right? Or you would take it and you just avoid entering trades during the news window, but don't necessarily avoid their candles, right?

If I'm in a trade and it's in my favor or I've moved my stop to entry, I will trade through news. If not, I close out the trade and would wait 5-10 minutes after dissemination.

Reply With Quote
  #300 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Also checked my Interactive Brokers feed, is in line with IQFeed, so definitely a data bug on tradestation.


cunparis View Post
Tradestation had an inside bar while IQFeed on market delta & ninja did not. Shame on tradestation. Pretty rare for minute bars to be so far off.


Reply With Quote
Thanked by:




Last Updated on May 15, 2014


© 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