Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Saving AtmStrategy Templates
Collapse
X
-
Hello shankar.deshapande,
You would need to import the zip file into NinjaTrader using Tools -> Import NinjaScript.
After that it will appear at the bottom of the New menu.
You will need to be connected to a data provider to have the account populate in the addon.
After selecting the account and template press submit order.
I look forward to being of further assistance.
-
hi,
how to use above above code to place order by ATM strategy selected as video is not available
Leave a comment:
-
Hello JerryWar,
This script is created with the NinjaScript Editor.
Most objects are NinjaTrader Development created objects.
NinjaTrader.Gui.Tools.NTMenuItem
NinjaTrader.Gui.Tools.AccountSelector
NinjaTrader.Gui.NinjaScript.AtmStrategy.AtmStrateg ySelector
NinjaTrader.Gui.Tools.InstrumentSelector
The Button, Page, and Grid are System.Windows.Controls.
Leave a comment:
-
Hi Community,
I made some modifications to this script to allow the account to be selected and to have the AtmStrategySelectionMode set to .SelectActiveAtmStrategyOnOrderSubmission so that the active atm is selected when an order is placed.Attached Files
Leave a comment:
-
Your example works fine thanks.
MY trouble was much simpler ; I just wanted to retrieve the name of the selected ATM from a Strategy or indicator...
...but I discovered I was using the wrong extension ;
Example ; if atmselector is the automation id of the ATM selection on Chart Trader
And this is the part of the code ( of an indicator or Strategy working on the chart whose chart trader ATM I want to read ) ;
if (atmselector != null && atmselector.SelectedAtmStrategy != null)
{
// I was reading this, which not always print the correct ATM name
Print(atmselector.SelectedAtmStrategy.Name);
//But now I replaced the code by this and seems to be working fine
Print(atmselector.SelectedAtmStrategy.DisplayName) ;
}
Leave a comment:
-
Hello pmaglio,
I am testing this behavior using the public latest version 8.0.2.0, but I am not able to reproduce this behavior.
Below is a link to a video of my test.
Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.
Attached is the Addon script I have used to test this.
Please ensure you are using 8.0.2.0 and use the Addon I have provided and follow the steps in the video.
Let me know if when taking the same steps you get different behavior.Attached Files
Leave a comment:
-
Saving AtmStrategy Templates
Hi,
I noticed that when using an atm template as source to edit and save it with a new name, the xml file contains the name of the original atm instead of the new
Example : I select an atm named ATMname on Chart Trader, click on edit
change a few things, and click on save as template
Save it as ATMname2
But if I open the xml file (ATMname2.xml) the field "Name" still contains the original name "ATMname"
This is avoiding that when we look at the selected atm name ;
Print(atmselector.SelectedAtmStrategy.Name) to get the correct atm selected by the user.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by arvidvanstaey, Today, 02:19 PM
|
2 responses
6 views
0 likes
|
Last Post Today, 03:12 PM | ||
Started by jordanq2, Today, 03:10 PM
|
0 responses
2 views
0 likes
|
Last Post
by jordanq2
Today, 03:10 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
46 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM |
Leave a comment: