NexusFi: Find Your Edge


Home Menu

 





Turtle Trade end of day with Ninja?


Discussion in NinjaTrader

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




 
Search this Thread

Turtle Trade end of day with Ninja?

  #1 (permalink)
 Tealcosmo 
San Francisco, CA, United States
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Stocks
Posts: 3 since Apr 2013
Thanks Given: 0
Thanks Received: 1

Hi I'm brand new to Mikes and Ninja. for the past several months I've been basically doing channel breakout with Donchian channels similar to the turtle traders. I will hold trades inter-day and do most of my stuff in the evening. I've been working with basically a charting program, google docs, and IB for this and have recently wanted to turn to automation hoping that Ninja will help me.

Does anyone have any experience using Ninja for inter-day (not intra) trading, setting and resetting buy and sell stops as channels move and pyramiding. Basically I've gotten to here, this strategy works except it seem to ignore the pyramiding rules in the strategy analyzer and I'm not sure how to get it to work. I also worry that over night if I stop and re-start the strategy or reset my computer it will loose the information on in flight trades

 
Code
            // Condition set 1 
           // enter long stop order for high channel
            if (MACD(12, 26, 9).Avg[0] > MACDMinimum
                && Position.MarketPosition != MarketPosition.Long)
            {
                EnterLongStop(1, DonchianChannel(HighChannel).Upper[0], "Donch20Upper");
            }

            // Condition set 2
            // reset the sell stop for the low channel
            if (Position.MarketPosition == MarketPosition.Long)
            {
                ExitLongStop(DonchianChannel(LowChannel).Lower[0], "ResetStop", "");
            }

            // Condition set 3
             // pyramid, enter another trade only after x days   
            if (MACD(12, 26, 9).Avg[0] >= MACDMinimum
                && BarsSinceEntry() >= DaysPyramid)
            {
                EnterLongStop(1, DonchianChannel(HighChannel).Upper[0], "");
            }
        }
I would love any assistance you can render this ATS newbie. It seems like it should be easy to automate. The trick is that I want to potentially have multiple strategies running and want to keep them separate for entries and exits.

Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Increase in trading performance by 75%
The Elite Circle
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #2 (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

@Tealcosmo: Let me make a few considerations

Turtle Strategies worked well back in the 90s, I am not sure whether they still work today. Furthermore, trendfollowing strategies are known for large drawdowns. You may have 3 or 4 losing trade, before you enter a winning trade. Also many winning trades will have large drawdowns. Psychologically it is not easy to stay in a turtle trade, as there is a temptation to exit early.

In any case you should do backtests, before you start trading with real money.

If you hold positions over several days, then there are some restrictions that apply:

-> TWS is reset once during night, this will produce a dis-connect, and NinjaTrader will not reconnect on its own.
-> Some brokers do not allow orders GTC but only GTD, which means that all orders will be cancelled end of day and reset. I am not holding positions overnight, so I do not know, whether Interactive Brokers accepts automaticallly generated orders with GTC.

I do not see any need to have an automated strategy running. The backtest will be performed in COBC = true. To obtain results that are comparable to the backtest, you would only need to check your position once per day.

Reply With Quote
Thanked by:
  #3 (permalink)
 
iqgod's Avatar
 iqgod 
Mumbai, India
Legendary Market Wizard
 
Experience: Advanced
Platform: ChartNexus
Trading: Stocks, Commodities, Futures
Posts: 1,802 since Feb 2012
Thanks Given: 3,658
Thanks Received: 3,097



Fat Tails View Post
@Tealcosmo: Let me make a few considerations

.
.
.
If you hold positions over several days, then there are some restrictions that apply:

-> TWS is reset once during night, this will produce a dis-connect, and NinjaTrader will not reconnect on its own.
-> Some brokers do not allow orders GTC but only GTD, which means that all orders will be cancelled end of day and reset. I am not holding positions overnight, so I do not know, whether Interactive Brokers accepts automaticallly generated orders with GTC.

.
.

I can confirm that Interactive Brokers does indeed have GTC orders that are pushed to the exchange each day at the start of RTH.

Regarding the disconnect issue it is indeed a pain.

However placing your system on hibernate and then resuming it after the disconnect period passes gets NinjaTrader and TWS reconnected.

The hibernate can be programmed - not sure if startup (motherboard self-boot or something) can also be programmed - would be grateful if someone can let me know if that is possible.

Hope that helps.

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 Tealcosmo 
San Francisco, CA, United States
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Stocks
Posts: 3 since Apr 2013
Thanks Given: 0
Thanks Received: 1


Fat Tails View Post
@Tealcosmo: Let me make a few considerations

Turtle Strategies worked well back in the 90s, I am not sure whether they still work today. Furthermore, trendfollowing strategies are known for large drawdowns. You may have 3 or 4 losing trade, before you enter a winning trade. Also many winning trades will have large drawdowns. Psychologically it is not easy to stay in a turtle trade, as there is a temptation to exit early.

In any case you should do backtests, before you start trading with real money.

If you hold positions over several days, then there are some restrictions that apply:

I do not see any need to have an automated strategy running. The backtest will be performed in COBC = true. To obtain results that are comparable to the backtest, you would only need to check your position once per day.

Just to address, I've done my backtesting using my charting software where I programmed in the trades, ProRealTime. The strategy works well for most stocks. Part of the backtesting I want to do with ninja is to get the strategy to work on this platform.

To answer why, well because I'm the kind of person who doesn't like to do repetitive tasks that a computer would be better at, so therefore I want my computer to do it for me. And the Turtle is what I know right now, I haven't studied the other trading strategies as yet and have only been trading (as opposed to investing) for about 4 months now. Of course we are all looking for the holy grail, even though there isn't one, and partly using the computer is to get over the psychological effects of trading and gunslinger attitude.

Started this thread Reply With Quote




Last Updated on April 18, 2013


© 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