Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Saving AtmStrategy Templates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:


  • shankar.deshapande
    replied
    hi,
    how to use above above code to place order by ATM strategy selected as video is not available

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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:


  • JerryWar
    replied
    Nice Addon Example
    Were the Windows , Buttons and drop down selects created from scratch
    or with Visual Studio, If so which version do you use ?
    Last edited by JerryWar; 08-03-2017, 08:28 AM.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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:


  • pmaglio
    replied
    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:


  • NinjaTrader_ChelseaB
    replied
    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.
    http://www.screencast.com/t/facBv5PuWjv

    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:


  • pmaglio
    started a topic Saving AtmStrategy Templates

    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.
    Attached Files

Latest Posts

Collapse

Topics Statistics Last Post
Started by salination2, Today, 07:21 PM
1 response
4 views
0 likes
Last Post s.kinra
by s.kinra
 
Started by aarons34, Today, 08:11 PM
0 responses
6 views
0 likes
Last Post aarons34  
Started by Shiner452, Today, 06:55 PM
0 responses
2 views
0 likes
Last Post Shiner452  
Started by Aquatrade, Today, 06:22 PM
0 responses
3 views
0 likes
Last Post Aquatrade  
Started by trader3000a, Today, 02:04 PM
2 responses
24 views
0 likes
Last Post trader3000a  
Working...
X