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 intelligenttrader, 04-09-2021, 11:33 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by wherrera, 04-09-2021, 11:18 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by mlprice12, 04-09-2021, 06:06 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by bofygym7, 04-09-2021, 05:40 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by honest-trader, Today, 01:25 PM
    2 responses
    6 views
    0 likes
    Last Post honest-trader  
    Working...
    X