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 algospoke, 04-17-2024, 06:40 PM
    6 responses
    49 views
    0 likes
    Last Post algospoke  
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    61 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    9 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    21 views
    0 likes
    Last Post traderqz  
    Working...
    X