![]() |
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
|
|||||||
| Market Analyzer Support for the NinjaTrader Market Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Feb 2010
Posts: 128
Thanks: 0
Thanked 0 times in 0 posts
|
Hi!,
Today I was testing one strategy until it didn't work any more, I put a print instruction in first line of OnUpdateBar, but it never showed when running again this strategy, it only displays the messages in initialize method. Then I createad a new strategy, and it didn't work at the first test, but this time I saw it was printing the messages first from the old strategy (only within initialize method) and then the own messages (again only in initialize method) and never reaches the onupdatebar method where (in this second strategy) I only put a print statement... I shutted off the NT and restart again, but it displays the same, it doesn't works. What can I do? thanks in advance |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
joanNT, welcome to the forums - this is partially expected as the Initialize() method is called across all scripts - is the default SampleMACrossOver strategy working for you normally?
Do you see any error message in the log tab as you run the strategies giving you issues?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2010
Posts: 128
Thanks: 0
Thanked 0 times in 0 posts
|
The sample strategy doesn't work too.
The log gives me no error when I run a strategy, except for one that it gave me I think at beginning of tests: 24/02/2010 11:57:32;Strategy;Error on calling 'OnBarUpdate' method for strategy 'LarryWilliams1': El índice estaba fuera del intervalo. Debe ser un valor no negativo e inferior al tamaño de la colección.; 24/02/2010 11:41:39;Strategy;A Buy order placed at '21/03/2007 20:00:00' has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.; This messages could be sent when the first strategy I ran started to work bad, after that problably all the new and old strategies didn't work. Hope you can fix it. Thanks |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
joanNT, please restart NT fresh, open one chart connected and only apply the SampleMACrossOver from us to check.
The message you get in the log means at some point you submitted an invalid stop order that caused NinjaTrader to ignore it, you would need to debug your order placement to ensure sending valid orders.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2010
Posts: 128
Thanks: 0
Thanked 0 times in 0 posts
|
Hi again,
I've tested the strategy with a new chart and connected, it works with all strategies, BUT within the Strategy Analyzer (SA) doesn't works, when I push the "b" of Run backtest and select the SampleMACrossOver it runs the three initialize methods of the three new strategies I've created today and never reaches the onbarupdate method of any strategy. By now I can use the strategies in the Chart window and only open de SA for consulting the output window, but I used to write and test the strategies from the SA this was easier. Could you know another solution to fix this problem? thanks!! |
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
joanNT,
So are you saying you cannot even run a backtest of SampleMACrossOver in the Strategy Analyzer? That is odd. Are you sure you have data for that instrument?
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| running all my symbols for strategy | junkone | Strategy Development | 3 | 02-23-2010 08:41 AM |
| How to know the name of the strategy that is running | richa61416 | Strategy Development | 2 | 02-19-2010 10:25 AM |
| Strategy arrows on chart thus no strategy is running | poseidon_sthlm | Strategy Development | 2 | 01-15-2010 10:35 AM |
| Keep Strategy running. | gator-trader | Automated Trading | 3 | 08-29-2009 06:26 PM |
| Keep Strategy Running | CashCache | Strategy Development | 14 | 10-02-2008 11:20 PM |