NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 08-04-2012, 06:24 PM   #1
dukeb
Senior Member
 
Join Date: Mar 2012
Posts: 102
Thanks: 29
Thanked 4 times in 4 posts
Default Strategy Analyzer Syntax

This is in the initialze section

Add(PeriodType.Minute,15);

CalculateOnBarClose =
true;
=============================
This doesn't compile
//protectedoverridevoid OnBarUpdate() section

if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(BarsArray[1],(3, 5, 2).K[0]) < 25 )
DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);
I need the barsarray statement above
====================================

This is OK but doesn't make sense
if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(3, 5, 2).K[0]) < 25 )
DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);


Thank you,

Duke

Last edited by dukeb; 08-04-2012 at 06:27 PM.
dukeb is offline  
Reply With Quote
Old 08-04-2012, 07:49 PM   #2
dukeb
Senior Member
 
Join Date: Mar 2012
Posts: 102
Thanks: 29
Thanked 4 times in 4 posts
Default I found the problem .....

Quote:
Originally Posted by dukeb View Post
This is in the initialze section

Add(PeriodType.Minute,15);

CalculateOnBarClose =
true;
=============================
This doesn't compile
//protectedoverridevoid OnBarUpdate() section

if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(BarsArray[1],(3, 5, 2).K[0]) < 25 )
DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);
I need the barsarray statement above
====================================

This is OK but doesn't make sense
if (Stochastics(3, 5, 2).K[0] < 25 && Stochastics(3, 5, 2).K[0]) < 25 )
DrawDiamond("My diamond" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Blue);


Thank you,

Duke

The program runs .. I am currently testing
dukeb is offline  
Reply With Quote
Old 08-05-2012, 11:40 AM   #3
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

dukeb,

Please let us know if you require additional assistance.
NinjaTrader_AdamP is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strategy Syntax safetrading Strategy Development 7 06-15-2012 04:29 PM
NT7B22: Strategy Analyzer chart, indicator on strategy attached to panel 1 nailz420 Version 7 Beta General Questions & Bug Reports 3 10-11-2010 09:09 AM
Multi Time Frame Strategy & CalculateOnBarClose = false in strategy analyzer tomtom Version 7 Beta General Questions & Bug Reports 7 05-02-2010 08:57 PM
Strategy plots. Syntax for referencing lines raz0rback Strategy Development 2 06-15-2008 09:06 AM
Syntax for adding Woodies Pivots to strategy raz0rback Strategy Development 1 06-15-2008 07:54 AM


All times are GMT -6. The time now is 01:32 AM.