PDA

View Full Version : Bars Since Entry


daven
08-07-2007, 04:18 PM
I'm writing strategies using the wizard. My programming skills are not up to coding in C#. Is there some kind of function like a bars since entry? I'd like to test if it has been up to X bars since I entered a position, and execute at the close of 'X' bar if profit is below a threshold. Couldn't find anything like this function, but perhaps I don't know were to look.

NinjaTrader_Josh
08-07-2007, 06:20 PM
Lol. You guessed it exactly. It is BarsSinceEntry()

http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?BarsSinceEntry

daven
08-07-2007, 07:39 PM
I can see the example coding in the provided link. I've been creating strategies using only the strategy wizard. I'm not sure how to add this into the wizard or can I even do that? Like I said in the first entry, I'm not good enough to write strategies using anything but the wizard. I guess its time to get serious about the C# tutorial.

NinjaTrader_Ray
08-08-2007, 02:12 AM
This is not supported in the Wizard at this time. I believe it will be by fall.