Need help with some C# Counting Code

Posted by kaywai on Stack Overflow See other posts from Stack Overflow or by kaywai
Published on 2010-03-01T13:25:20Z Indexed on 2010/04/20 5:33 UTC
Read the original article Hit count: 168

Filed under:

Hi, I'm trying to code a counter in Ninjatrader which uses C# as its programming language.

I would like this counter to commence counting upon the completion of the first counter and once it commences counting to consider only the new condition when counting.

So, the first counter commences when Close[0] < Close[4]. The second counter commences ONLY after the first counter has reached 9 and its condition for counting is Close[0] <= Low[2].

I don't know how to write the part of the code where the second counter commences counting and its counts are independent of the first counter reaching 9.

© Stack Overflow or respective owner

Related posts about c#