Converting code from Tradestation/ Plots Swing Point Highs/Lows - NinjaTrader Programming | futures io social day trading
futures io futures trading

Converting code from Tradestation/ Plots Swing Point Highs/Lows
Updated: Views / Replies:4,586 / 4
Created: by wbtrader Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Converting code from Tradestation/ Plots Swing Point Highs/Lows

  #1 (permalink)
atlanta ga usa
Trading Experience: Advanced
Platform: tradestation, ninja trader
Favorite Futures: es
Posts: 12 since Aug 2011
Thanks: 10 given, 5 received

Converting code from Tradestation/ Plots Swing Point Highs/Lows

would anyone be able to help with converting code from Tradestation into Ninja Trader?
MALength( 20 ),
Price( Close ),
UseGradientColor( true ),
NegGradColor( Red ),
PosGradientColor( Green ) ;

MAValue( 0 ),
MASlope( 0 ),
MAAngle( 0 ) ;

MAValue = AverageFC( Price, MALength ) ;

MASlope = ( MAValue - MAValue[1] ) * (PriceScale / MinMove ) ;

MAAngle = ArcTangent( MASlope ) ;

if UseGradientColor then
SetPlotColor( 1, GradientColor( MAAngle, -90, 90, NegGradColor, PosGradientColor )) ;

Plot1( MAAngle, "MA Angle" ) ;

"All Things Are Possible Thru Christ"

Last edited by wbtrader; May 14th, 2013 at 08:59 PM. Reason: updated
Reply With Quote
  #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.

  #3 (permalink)
Elite Member
Berlin, Europe
Trading Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
Fat Tails's Avatar
Posts: 9,765 since Mar 2010
Thanks: 4,233 given, 26,143 received

You could look at various zigzag indicators, which are already available for NinjaTrader. Also, If you define swing highs and lows, there are two different concepts:

(a) define a high or low as a bar with a higher high or lower low than the n surrounding bars (strenght n)

(b) define highs and lows based on a zigzag with a minimum deviation

I prefer the method which uses the minimum deviation, as it will not plot a large number of useless highs and lows in a choppy market which is going nowhere.

But the best method obviously depends on what you want to do with those highs and lows, and then you did not tell us.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
  #4 (permalink)
atlanta ga usa
Trading Experience: Advanced
Platform: tradestation, ninja trader
Favorite Futures: es
Posts: 12 since Aug 2011
Thanks: 10 given, 5 received

swing point highs/lows confirmation entries

sorry i didnt tell the whole story. i am wanting to use these as confirmation entries. this is what the idea of it is and this is posted above in the code.
"This plots swing highs/lows with a strength of 2 bars on each side, on the condition that there is a
close above/below the high/low the bar after the said swing bar."

i simply want it to plot a dot whenever this occurs. it can plot the dot when you get the close within 2 bars of said swing high/low bar with a strength of 2 bars on each side. hope this helps.
it is simply meant to trigger an entry and it also plots the price of the swing high/low when it plots so you know where to place your stop. you can see the pic attached to get the idea. thanks!!!

"All Things Are Possible Thru Christ"
Attached Thumbnails
Converting code from Tradestation/ Plots Swing Point Highs/Lows-swing-high-low.jpg  
Reply With Quote
The following user says Thank You to wbtrader for this post:
  #5 (permalink)
Trading Apprentice
San Felipe BC/Mexico
Trading Experience: Beginner
Platform: TradeStation
Favorite Futures: Stocks
famgomlop's Avatar
Posts: 1 since May 2012
Thanks: 0 given, 1 received

Pivot Points for Ninjatrader

Try this pivot points, I'm sure probably is not exactly as in Tradestation, which I have too, bute it gives prettty much the same result for buy/sell decision

Attached Files
Register to download File Type: zip (3.8 KB, 85 views)
Reply With Quote
The following 3 users say Thank You to famgomlop for this post:


futures io > > > > > Converting code from Tradestation/ Plots Swing Point Highs/Lows

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

Donít Let One Bad Trade Wipe Out Your Entire Account w/GFF Brokers

Apr 23

New CME Micro Indices: New Trading Opportunities w/FuturesTrader71

Elite only

Benefits of Trading the Micro E-Minis w/Stage 5 & CME Group

Apr 30

Similar Threads
Thread Thread Starter Forum Replies Last Post
new highs and new lows!!!!? tr3nt NinjaTrader Programming 9 August 12th, 2013 01:58 PM
Stocks May Have Seen Highs For YearóBut Not Lows: Pros Quick Summary News and Current Events 0 August 15th, 2011 06:20 PM
Accessing Zigzag swing highs/lows buylosellhi NinjaTrader Programming 3 April 27th, 2011 04:56 PM
Help converting CCI SQZ Zero Heat from TradeStation to NinjaTrader incometrade NinjaTrader Programming 2 January 28th, 2011 09:18 AM
HH HL Higher highs, Higher lows emini_Holy_Grail Traders Hideout 3 January 22nd, 2010 04:10 PM

buy, code, indicators, information, ninja, ninja trader, ninjascript, ninjatrader, pivot points, pivots, strength, swing, tradestation, zigzag

All times are GMT -4. The time now is 04:16 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
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 2019-04-23 in 0.22 seconds with 15 queries on phoenix