Market Swing Question - NinjaTrader Programming | futures trading

Go Back

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

Market Swing Question
Started:March 19th, 2011 (08:21 PM) by sdt929 Views / Replies:866 / 2
Last Reply:March 21st, 2011 (08:46 PM) Attachments:0

Welcome to

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

Market Swing Question

Old March 19th, 2011, 08:21 PM   #1 (permalink)
Elite Member
Dallas, Texas
Futures Experience: Intermediate
Platform: NT
Broker/Data: Amp/CQG
Favorite Futures: CL,ZB,TF
sdt929's Avatar
Posts: 17 since Sep 2009
Thanks: 45 given, 27 received

Market Swing Question

Ok, I'm trying to write a strategy that scalps swings. Sorry this is probably a really dumb question!!!! Is there code that once I scalp a long signal, then the strategy will only look for my short signal? The simple strategy I have will, for example, take a long signal. I'll get 4 or 5 ticks but it keeps taking long signals until the market swings and I lose. Then it starts taking short signals until it swings and goes back long. Ya'll remember I have just started looking and trying to build a strategy and I don't have a clue what I am doing. Gotta start somewhere!

Reply With Quote

Old March 19th, 2011, 08:21 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old March 21st, 2011, 08:46 PM   #3 (permalink)
Fortitudo et Honor
Austin, TX
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Futures
Posts: 882 since Mar 2011
Thanks: 128 given, 700 received

Are you autotrading?

If so, I've run into this before, but the solutions have drawbacks.....

you can try

If marketposition(1) <> 1

That will ensure that if your last trade a positive position, it will not enter a long(positive) position. However, as you would expect, it comes at a price, because you lose some winners that you enjoy on longer trends in the same direction.

You can try to change your entry code to recognize the change in trend rather than the trend.

So instead of

if close > high[1] then.....

to look more like this....

if close > high[1] and close[1] > close[2] and close[2] < close[3]

You can expand outward from the pivot point as much as you'd like in series to reduce spurious pivot signals.....

Reply With Quote
The following user says Thank You to RM99 for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Market Swing Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
Real-time market/economic news feeds question martifc Traders Hideout 5 May 28th, 2014 03:48 AM
Market's Big Question: Real Rally or 'Dead Cat Bounce'? Quick Summary News and Current Events 0 July 7th, 2011 03:10 PM
NT7 Market Analyser question jtrade NinjaTrader 1 June 3rd, 2011 07:31 PM
Market Replay Data Question - NT7 Todd NinjaTrader 20 September 11th, 2010 11:50 PM
Swing in a Strategy MXASJ NinjaTrader Programming 10 October 3rd, 2009 10:49 AM

All times are GMT -4. The time now is 08:06 AM.

Copyright © 2016 by 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-22 in 0.08 seconds with 19 queries on phoenix via your IP