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:3,527 / 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 90,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

Reply
 
Thread Tools Search this Thread
 

Converting code from Tradestation/ Plots Swing Point Highs/Lows

  #1 (permalink)
 Vendor: www.purefinancialacademy.com 
atlanta ga usa
 
Futures Experience: Advanced
Platform: tradestation, ninja trader
Favorite Futures: es
 
Posts: 12 since Aug 2011
Thanks: 10 given, 3 received

Converting code from Tradestation/ Plots Swing Point Highs/Lows

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

variables:
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 09: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
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


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)
 Vendor: www.purefinancialacademy.com 
atlanta ga usa
 
Futures Experience: Advanced
Platform: tradestation, ninja trader
Favorite Futures: es
 
Posts: 12 since Aug 2011
Thanks: 10 given, 3 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
 
Futures 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 PivotPoints.zip (3.8 KB, 81 views)
Reply With Quote
The following 3 users say Thank You to famgomlop for this post:

Reply



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

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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


All times are GMT -4. The time now is 10:21 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-12-15 in 0.09 seconds with 20 queries on phoenix via your IP 54.221.76.68