NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 2 of 2
Search: Posts Made By: SpeculatorSeth
Forum: NinjaTrader June 22nd, 2017, 02:06 PM
Replies: 9
Views: 1,315
Posted By SpeculatorSeth
A do while loop always executes the code in the...

A do while loop always executes the code in the block first, and then checks the variable. So in this instance I'm using the do while loop to ensure that it always executes at least once for bar 0. ...
Forum: NinjaTrader June 22nd, 2017, 12:16 PM
Replies: 9
Views: 1,315
Posted By SpeculatorSeth
You need some sort of loop. Here's a loop that I...

You need some sort of loop. Here's a loop that I use to calculate how long we've been in a range for.


int current = 0;
double high = High[current];
double low = Low[current];

do
{
high...
Showing results 1 to 2 of 2

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

 


 
 


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top