Which OR operator to use in C# please? - NinjaTrader Programming | futures io social day trading
futures io futures trading


Which OR operator to use in C# please?
Updated: Views / Replies:2,132 / 16
Created: by Al2010 Attachments:1

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

Closed Thread
 1  
 
Thread Tools Search this Thread
 

Which OR operator to use in C# please?

  #11 (permalink)
Trading for Fun
 
Futures Experience: None
Platform: NinjaTrader
 
Posts: 50 since Oct 2010
Thanks: 36 given, 10 received


samWest View Post
I'm sorry Al2010, I'm not going to write your code for you. My suggestion would be to go over to the indicator download area and look for something that is similar to what you want to do. Downloaded it, and look at the code. Studying other peoples code is great way to improve you coding skills.

I'm not asking to write anything for me. The question was why it works lk this and not as supposed to? Can you answer? Any explanation why it prints both messages when it should print only one according to the simple logic and code anyone can write? Is there an error in this code? I do not see it. This is very simple code and question. And seems no one can answer. But most can lecture... Is this C# or Ninja limitations, if any?
Besides, there is nothing wrong to show how to do smth. that you may know better and someone is asking for help. This is learning, not going through mostly ridiculous code of others. Look how many custom indicators out there. But 99.9% of them are absolutely useless. Some of them are beautiful and colorful... but try using them.
Thanks.

 
  #12 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,354 given, 83,237 received

Attach your entire .cs file as an attachment and I will try to look at it (or someone else will) to see the problem.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

The following 2 users say Thank You to Big Mike for this post:
 
  #13 (permalink)
Trading for Fun
 
Futures Experience: None
Platform: NinjaTrader
 
Posts: 50 since Oct 2010
Thanks: 36 given, 10 received



Big Mike View Post
Attach your entire .cs file as an attachment and I will try to look at it (or someone else will) to see the problem.

Mike

Thank you very much! Please see attached.

Attached Files
Register to download File Type: cs StochArrow.cs (14.7 KB, 8 views)
 
  #14 (permalink)
Elite Member
Houston, Texas
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 25 since Oct 2010
Thanks: 2 given, 19 received

To Al2010. Debugging is coding (usually the hardest part). I am trying very hard not to make a comment on the "value" of a double stochastic indicator.

To Big Mike. Thank You . I am now going to bow gracefully out of this thread before Al2010 makes another ungrateful remark.

The following user says Thank You to samWest for this post:
 
  #15 (permalink)
Trading for Fun
 
Futures Experience: None
Platform: NinjaTrader
 
Posts: 50 since Oct 2010
Thanks: 36 given, 10 received


samWest View Post
To Al2010. Debugging is coding (usually the hardest part). I am trying very hard not to make a comment on the "value" of a double stochastic indicator.

To Big Mike. Thank You . I am now going to bow gracefully out of this thread before Al2010 makes another ungrateful remark.

Riiiiiiiight, blame me for your failures. Grow up. Too late to bow gracefully out...

 
  #16 (permalink)
Elite Member
Houston, Texas
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 25 since Oct 2010
Thanks: 2 given, 19 received


Al2010 View Post
Riiiiiiiight, blame me for your failures. Grow up. Too late to bow gracefully out...

Dude, I correctly and courteously answered your original question. From your followup comments it is very obvious you don't know how to program and you don't even understand the most basic concepts in programming. In case you didn't know, this is a PROGRAMMING forum. The information I gave you, which is above and beyond your original question, is way more valuable than that silly little indicator you are trying to get working. The only real value it has is as a learning tool but you choose not to learn. Now the grace is gone.

 
  #17 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,354 given, 83,237 received

Moderator Note
This thread is now closed. The childish behavior is not allowed and will not be tolerated on this forum. It will now end, one way or another.

-- Big Mike


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.


Closed Thread



futures io > > > > > Which OR operator to use in C# please?

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
     


All times are GMT -4. The time now is 06:28 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-17 in 0.10 seconds with 19 queries on phoenix via your IP 54.82.81.154