NT Falling() Syntax - NinjaTrader | futures io social day trading
futures io futures trading


NT Falling() Syntax
Updated: Views / Replies:1,537 / 6
Created: by aligator 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 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
 

NT Falling() Syntax

  #1 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

NT Falling() Syntax

The following NT condition

if (Falling(SMA(20)))

Checks for a falling condition which is true when the current value is less than the value of 1 bar ago. How do you write the script to check if the value of 1 bar ago is less than the value of 2 bars ago, and so on?

Thanks.

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
Pennsylvania, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Forex
 
sunpost's Avatar
 
Posts: 60 since Aug 2010
Thanks: 203 given, 41 received


You can try LowestBar ...

 
Code
 if (LowestBar(SMA(20), barsago) == 0)

Reply With Quote
 
  #4 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

Thanks sunpost. But this really does not do what I want. Maybe if I give an example would help:

Example: If SMA of one bar (or any bar) ago is less than SMA of two bar (or any bar) ago, then...

I want to know if I can do this using the Falling() syntax.

Reply With Quote
 
  #5 (permalink)
Elite Member
Dallas, TX
 
Futures Experience: Beginner
Platform: Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: ZN, 6E
 
gulabv's Avatar
 
Posts: 284 since May 2010
Thanks: 159 given, 155 received

Falling() does not support barsago as a parameter it is always checking between the current bar and 1 bar ago.

Why don't you just compare the SMA values directly?

Instrument.MasterInstrument.Compare(SMA(x), SMA(y)) == -1

substitute x and y for the number of bars ago you want to check the SMA value for

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,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

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


aligator View Post
The following NT condition

if (Falling(SMA(20)))

Checks for a falling condition which is true when the current value is less than the value of 1 bar ago. How do you write the script to check if the value of 1 bar ago is less than the value of 2 bars ago, and so on?

Thanks.

falling condition one bar ago:

 
Code
if (SMA(20)[1] < SMA(20)[2])
As far as I know, the Falling() method is limited to the current bar.

Reply With Quote
 
  #7 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary

Thank you everyone, Fat Tails, Gulabv, and Sunpost.

Reply With Quote

Reply



futures io > > > > NT Falling() Syntax

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
Europe Markets Seen Falling on US, Greece Worries Quick Summary News and Current Events 0 June 2nd, 2011 03:40 AM
Need help Converting brief math and logic into Ninjascript syntax, VolumeUpDown Spec01 NinjaTrader Programming 3 May 9th, 2011 02:19 AM
Yen falling and fundamentals regarding earthquake josh Traders Hideout 3 March 18th, 2011 02:56 PM
Embarrassed at the simplicity, but I don't get it - C# basic syntax Crassius NinjaTrader Programming 5 February 22nd, 2011 05:49 PM
NT Rising / Falling formula diverdan Traders Hideout 7 November 1st, 2010 08:45 AM


All times are GMT -4. The time now is 08:50 PM.

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-13 in 0.10 seconds with 31 queries on phoenix via your IP 54.160.245.121