Swing in a Strategy (Page 2) - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Swing in a Strategy
Started:September 30th, 2009 (03:38 AM) by MXASJ Views / Replies:4,483 / 10
Last Reply:October 3rd, 2009 (10:49 AM) Attachments:4

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Swing in a Strategy

Old October 3rd, 2009, 10:49 AM   #11 (permalink)
Elite Member
Austin, TX
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Currencies
hondo69's Avatar
Posts: 165 since Jun 2009
Thanks: 57 given, 238 received

I've played with this general idea myself but was unable to code it due to my lack of skill. But a few "easy" ideas are worth pursuing for an expert coder . . .

1] The Swing setting is critical. For example, a setting of 3 matches that of Trade Station. But you can play around with 4, 5, etc. until you see something you like.

2] One approach is to look for a breakout from consolidation. For example, "If SwingHigh - SwingLow =< 10", then you have a setup. Next, program it so the first bar that closes outside of that range tell you the direction of the breakout. It works most of the time.

3] Another approach is to somehow track the patterns of the High and Low dots. In a down trend, the High dots will remain in a straight line while the Low dots form a step-down pattern below it. So you would program the strategy to look for the step-down pattern of the Low dots, indicating a trend. Then wait for the High bars to break down and make your entry.

Both approaches, of course, will need some additional signals to verify a trade entry. By this I mean add something like MACD, RSI, CCI, etc. to your entry parameters.

Here's where it gets funky . . .

Instead of Swing High/Low you might take a look at another indicator called StepMA71 located in the Ninja forum. It's the same general idea but from a different angle.

This indicator draws a continuous line across the chart and then steps up or down based upon your settings. Using multiple StepMA's on one chart is the best. So you might have a yellow "fast" line that steps at 3. Then a blue line that steps at 4 (slower). Then try adding others that step at 6 and 10 and you'll get some interesting results.

The next thing is for a programmer to create some type of variable that monitors the relationship of the lines. When in a chop market the lines are horizontal (not stepping) and the values between the lines are:

Step 3 to Step 4 = 10
Step 4 to Step 6 = 10
Step 6 to Step 10 = 20

The trick is calculating which lines are above or below the other lines. We can visually see this easily, but I'm unable to write the code for it myself. But a programmer could come up with a simply addition/subtraction method for doing so.

For example, after a recent uptrend but currently in chop, the fast line (3) would be above all the others. You could simply subtract the (4) line from the (3) line to get a value of 10. Then do the same with the other gaps between the lines and add up the resulting values. In this case the value would be 40 (10 + 10 + 20).

In a market that has consolidated, all gaps between the lines are very narrow. So the result of adding up the gaps would be a small number, say 6. If you are playing for a breakout after consolidation, then look for a gap total of 7 or less. Then a setup has occurred.

The problem I've been having is there is an endless number of gap relationships. And since I can't program a "gap tester" then I can't do anything with these basic ideas. Might be a fun project for a programmer to get us going on this. I think it may have value.

Attached Thumbnails
Swing in a Strategy-step_lines.jpg  
Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Swing in a Strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Corey Rosenbloom: Tips, Tactics, and Real Trades: Trading Intraday Trend Reversals

Elite only

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated Simple Swing Forex Strategy diverdan The Elite Circle 39 July 1st, 2011 12:47 AM
Swing/Pivot Points trs3042 Traders Hideout 3 November 28th, 2010 09:58 PM
How to use Price Action Swing? eone Traders Hideout 2 May 30th, 2010 11:16 PM
Swing HiLo with Extensions DavidHP NinjaTrader Programming 6 May 18th, 2010 08:18 PM
Chart for swing trade emini_Holy_Grail Traders Hideout 6 January 3rd, 2010 03:44 PM

All times are GMT -4. The time now is 07:35 AM.

Copyright © 2016 by 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

Page generated 2016-10-21 in 0.08 seconds with 20 queries on phoenix via your IP