OR operator rather than AND in condition builder - NinjaTrader | futures io social day trading
futures io futures trading


OR operator rather than AND in condition builder
Updated: Views / Replies:1,750 / 4
Created: by toddma 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
 

OR operator rather than AND in condition builder

  #1 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

OR operator rather than AND in condition builder

Another basic question question -

Does anyone know if there is a way in the condition builder to have condition1 or condition2 or condition3 = true? rather than all conditions must be true?

Or is this something that can only be done in code?
If its only in code - what would that look like? instead of "&&" - something else?

Thanks in advance -

Reply With Quote
 
  #2 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,572 given, 3,982 received

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

|| for OR
&& for AND

I don't use the Strategy Wizard, but I don't think it's possible to do what you want without coding.

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following user says Thank You to sam028 for this post:
 
  #3 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,260 since May 2010
Thanks: 153 given, 1,890 received

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



toddma View Post
Another basic question question -

Does anyone know if there is a way in the condition builder to have condition1 or condition2 or condition3 = true? rather than all conditions must be true?

Or is this something that can only be done in code?
If its only in code - what would that look like? instead of "&&" - something else?

Thanks in advance -

Each condition set (set 1, set 2, set 3 etc...) is "or" while the conditions within each set are "and".

Reply With Quote
 
  #4 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

but if you wanted to have:

if "A" is true
&
if ("B" or "C" is true)

Then enter long - how would you do that using different sets?

Sorry -
I can see that you could set them up as
two separate sets - but the problem is when you need the "OR" statement to be 10 or more items (as an example)

Reply With Quote
 
  #5 (permalink)
Elite Member
Los Angeles CA
 
Futures Experience: Advanced
Platform: NT
Favorite Futures: Stocks
 
Posts: 8 since Aug 2015
Thanks: 0 given, 3 received

This is a very late reply, but it may help someone reading this:

Toddma, yes, you can do that. Here's an example:

if(Condition....

&& (this > that || they < us))

{
Do something
}

The above is a simple way of doing what you want. The || in the parenthesis is the OR statement.

Reply With Quote

Reply



futures io > > > > OR operator rather than AND in condition builder

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
AND NOT operator on Ninja Trader script?!? vgbouchet NinjaTrader Programming 3 November 27th, 2011 12:53 AM
Home Builder Sentiment Improves More Than Expected Quick Summary News and Current Events 0 July 18th, 2011 11:40 AM
Which OR operator to use in C# please? Al2010 NinjaTrader Programming 16 December 11th, 2010 11:44 AM
Same condition every hour rajafx1 NinjaTrader Programming 5 August 13th, 2010 06:43 AM
Strategy Builder spinnybobo NinjaTrader Programming 6 October 3rd, 2009 12:53 PM


All times are GMT -4. The time now is 01:51 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-13 in 0.09 seconds with 29 queries on phoenix via your IP 54.92.201.232