Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Code

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

    ATM Code

    Hello.


    How can I run an ATM from code? Example, if I want to open an operation from code, how can I make it run with an already generated ATM? Thanks

    #2
    Hello gviand,

    Thanks for your post.

    You would need to create a strategy to connect to an ATM template.

    What you want to work with is a Ninjascript strategy that uses an ATM template to accomplish your goals where the strategy will find the entry conditions and place the entry order, once filled the specified ATM will take over providing the template specified profit and stop(s). You can then manipulate these manually during the trade as you wish. Once the trade has been closed, the strategy will look for the next entry.

    In your NinjaTrader is an example of this type of strategy called SampleAtmStrategy. Please review this strategy in the Ninjascript editor as the code is the best example we have of this type of hybrid strategy. The code of the strategy is well commented to help understand the requirements of use as well as how the various property and methods work. The comments advise you to create an ATM template (for the demonstration) called "AtmStrategyTemplate" and it can be created as you wish to configure it.

    The sampleATMstrategy uses special methods and properties that do not access the normal strategy methods and properties, here is a link to the help guide section on these special ATM methods and properties: [URL="https://ninjatrader.com/support/helpGuides/nt8/?atm_strategy_methods.htm"]https://ninjatrader.com/support/help...gy_methods.htm[/URL]

    Please note:[LIST=1][*]The Strategy Builder does not support ATMs[*]Strategies that use ATM methods cannot be "backtested" in the strategy analyzer.[*]Strategies that use ATM methods can be tested with Playback using Market replay data.[*]Strategies that use ATM methods need to skip historical data processing (as shown in the example strategy).[/LIST]


    I will move this thread to the NinjatTrader8 Strategy forum.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    942 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    9 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    4 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    33 views
    0 likes
    Last Post wzgy0920  
    Working...
    X