Coding question - NinjaTrader - NinjaTrader | futures io social day trading
futures io futures trading


Coding question - NinjaTrader
Updated: Views / Replies:891 / 5
Created: by Abde Attachments:0

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 dont 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
 

Coding question - NinjaTrader

  #1 (permalink)
Elite Member
Germany
 
Futures Experience: Intermediate
Platform: FlatTrader
Broker/Data: GFT and Interactive Brokers
Favorite Futures: ES, DAX
 
Posts: 531 since Aug 2010
Thanks: 2,121 given, 719 received

Coding question - NinjaTrader

Hello Coders,

I m working on an stopping volume indicator and need a little help.

The indicator compares the current volume and bar range, with the volume and bar range of the previous bar.
I like now to replace the bar ranges only with the open to close ranges of the bars. How can I do that?

Here comes the relevant code part:

 
Code
if( Close[0] > Open[0] && Volume[0] > Volume[1] && Range()[0] <= Range()[1])
else if( Close[0] <= Open[0] && Volume[0] > Volume[1] && Range()[0] <= Range()[1])
Many thanks in advance for any help.

Reply With Quote
 
  #2 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer


Abde View Post
Hello Coders,

I m working on an stopping volume indicator and need a little help.

The indicator compares the current volume and bar range, with the volume and bar range of the previous bar.
I like now to replace the bar ranges only with the open to close ranges of the bars. How can I do that?

Here comes the relevant code part:

 
Code
if( Close[0] > Open[0] && Volume[0] > Volume[1] && Range()[0] <= Range()[1])
else if( Close[0] <= Open[0] && Volume[0] > Volume[1] && Range()[0] <= Range()[1])
Many thanks in advance for any help.

Replace Range()[0] with Math.Abs(Close[0] - Open[0]).

Reply With Quote
 
  #3 (permalink)
Elite Member
Germany
 
Futures Experience: Intermediate
Platform: FlatTrader
Broker/Data: GFT and Interactive Brokers
Favorite Futures: ES, DAX
 
Posts: 531 since Aug 2010
Thanks: 2,121 given, 719 received



Fat Tails View Post
Replace Range()[0] with Math.Abs(Close[0] - Open[0]).

It works perfect - Thank you Harry.

PS: for what stands "Math.Abs", for difference?

Reply With Quote
 
  #4 (permalink)
Market Wizard
New Orleans, La (Mardi Gras City)
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Ninjatrader / Optimus Futures / AmpFutures
Favorite Futures: ES / 6E / 6B / CL
 
DavidHP's Avatar
 
Posts: 1,002 since Aug 2009
Thanks: 802 given, 1,367 received

Answer
This post has been selected as an answer to the original posters question Answer


Abde View Post
It works perfect - Thank you Harry.

PS: for what stands "Math.Abs", for difference?

C# Math.Abs: Absolute Value

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Reply With Quote
The following user says Thank You to DavidHP for this post:
 
  #5 (permalink)
Trading Apprentice
New york, NY/USA
 
Futures Experience: Advanced
Platform: TOS
Favorite Futures: stocks
 
Posts: 4 since Sep 2014
Thanks: 0 given, 0 received

RSI DIVERGANCE SCAN THINKORSWIM

Hi,

I have been trying to develop and RSI divergence scanner for my thinkorswim platform (ex: neg divergence: price is rising but RSI is declining, ex: pos divergence: price is declining but RSI is increasing) I am not a scripter but would appreciate any help in creating one,

thanks Dave

Reply With Quote
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,600 received
Forum Reputation: Legendary


DaveWave View Post
Hi,

I have been trying to develop and RSI divergence scanner for my thinkorswim platform (ex: neg divergence: price is rising but RSI is declining, ex: pos divergence: price is declining but RSI is increasing) I am not a scripter but would appreciate any help in creating one,

thanks Dave

@DaveWave: This thread is about coding for NinjaTrader. You have put your request in the wrong place.

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

Reply



futures io > > > > Coding question - NinjaTrader

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some coding practices when using VS with NinjaTrader BMMA14 NinjaTrader 3 August 19th, 2014 09:57 PM
Coding NinjaTrader with F# AstralTrader NinjaTrader Programming 5 October 22nd, 2012 03:00 PM
Question about coding bdd069 Elite Automated NinjaTrader Trading 10 January 20th, 2012 04:05 PM
MTF Coding Question togier NinjaTrader Programming 2 December 7th, 2010 01:35 AM
Strategy Wizard Coding Question njaisson NinjaTrader Programming 8 October 6th, 2010 08:34 AM


All times are GMT -4. The time now is 04:15 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-12 in 0.09 seconds with 31 queries on phoenix via your IP 54.82.112.193