PDA

View Full Version : Same Strategy Only Runs on Part of Instruments


rabidturtle
09-14-2007, 09:43 AM
Am developing a script that I would like to use to monitor all FOREX currency pairs. A few questions. As a note, I am running the scripts from the Control Center Startegies Tab.

First, even though I create and start a new strategy for each currency instrument, it only appears that a couple actually run. I am using print functions and only get data in the output window for a couple.

Second, I would like to have the script open a chart when a given set of conditions occur. It appears that you can have a script ADD data to the chart the script is executing on. However, I did not see a solution to open a chart.

Finally, is there a way to save the strategy configuration and reload it when the app resarts?

Thanks, in advance, for your help,
Mark

NinjaTrader_Ray
09-14-2007, 09:47 AM
Hi Mark,

1) My first guess would be that no data is coming in for the currency pairs that do not give you ouput data. To help isolate the issue, try this. Open a chart for each strategy you wish to run, then run a strategy on each chart *instead* of the Strategies Tab. Does it behave as expected?

2) There is no option to launch a chart when running from the Strategies Tab. If you wish to see a chart, you have to run the strategy in a chart.

3) This is not supported at this time.

rabidturtle
09-14-2007, 09:56 AM
Ray,

You are correct. I am using the Gain Feed. I can and can see the data in the "standard" Gain application.....

Any thought on why NinjaTrader wouldn't collect the data?

Mark

NinjaTrader_Ray
09-14-2007, 10:08 AM
NT collects the data but you likely do not have enough historical data in some of the currency pairs to drive your strategy.

Under Tools > Account Connections select your GAIN account and change the Historical Data option to use NinjaTrader servers and see if this makes a difference. GAIN servers only have 24 hours of historical data. Our servers collect and maintain GAIN rate data and the load time is incredibly faster.

rabidturtle
09-14-2007, 02:36 PM
Appears to have fixed the problem. Thaks for all the help (and you patience)

Have a good weekend,
Mark