So how do I load these strategies again? I just see a "Save As..." but no "Load" or "Import". What's the point?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Loading previous strategy list
Collapse
X
-
Loading previous strategy list
In the Control Center on the Strategies tab, after I add a series of strategies there is a "Save As..." option. I save my defined strategies.
So how do I load these strategies again? I just see a "Save As..." but no "Load" or "Import". What's the point?Tags: None
-
"Save as" is a standard option for every grid and saves the grid content to a file.
Please learn more here on NT grids: http://www.ninjatrader-support.com/H...Overview3.html
-
Originally posted by NinjaTrader_Dierk View Post"Save as" is a standard option for every grid and saves the grid content to a file.
Please learn more here on NT grids: http://www.ninjatrader-support.com/H...Overview3.html
It's a time-consuming and error-prone task to add all of my strategies (since I have to do it for each, individual instrument, ugh). Is there any way that I can save the list and then load it again?
Comment
-
'Cause this is a very important issue to me, I wrote an AutoIt script which will automate/hijack the NinjaTrader UI to add a list strategies. It's extremely user un-friendly, intolerant of glitches and isn't easily extensible but it works for me. I'm reluctant to do more work on it since I'm hoping that version 7.0 will offer real support for this feature. (hint hint )
As a safety precaution, the script is provided without documentation, tips or pointers. If you can't install AutoIt on your own and successfully modify the source code, then it's probably too raw for you anyway.
Enjoy
Code:; run the script then click the 'Strategies' window of NinjaTrader WinWaitActive("Control Center - Default") Dim $anArray[4] $anArray[0]="AAPL" $anArray[1]="AMZN" $anArray[2]="BIDU" $anArray[3]="EOG" for $element in $anArray AddStrategy( "MyStrategy", $element ) NEXT Func AddStrategy($stratName, $ticker) MouseClick("right") Sleep(100) Send("N") Dim $currStrat $currStrat = WinGetText("New Strategy") While StringInStr( $currStrat, $stratName) == 0 Send( StringLeft($stratName, 1) ) Sleep(1000) $currStrat = WinGetText("New Strategy") Wend ; Get the instrument field ControlClick("New Strategy", "", "[CLASS:WindowsForms10.Window.8.app.0.378734a; INSTANCE:4]", "left", 1, 235, 56) Sleep(1000) ControlClick("New Strategy", "", "[CLASS:WindowsForms10.BUTTON.app.0.378734a; INSTANCE:3]", "left", 1, 7, 7) Sleep(1000) ControlFocus("New Strategy", "", "[CLASS:WindowsForms10.Window.8.app.0.378734a, INSTANCE:2]") Sleep(1000) Dim $sel = WinGetText("") If StringInStr( $sel, "<Default>" ) <> 0 Then Send("S") Sleep(1000) EndIf Send($ticker & "{ENTER}") Sleep(1000) Send("{ENTER}") Sleep(1000) EndFunc
Last edited by adrian; 04-15-2008, 04:33 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by TheTradingMantis, 10-31-2017, 03:18 PM
|
5 responses
1,251 views
0 likes
|
Last Post
by TheAngryCube
Today, 04:06 PM
|
||
Started by Padan, Today, 02:02 AM
|
9 responses
23 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
Comment