Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Re-Entries with strategy that uses ATM exits

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

    Multiple Re-Entries with strategy that uses ATM exits

    Hi all
    I am developing a strategy that calls the ATM for SL Target Trail etc, the strategy uses a repainting filter and then candle entries for the trigger. The "entries per direction" is set to 1 (not unique entries either) and it will still take re-entries when the strategy validates multiple re-entries, usually causing a loss at the very bottom of a directional move.

    I would like to eliminate this but not sure if I need to code in a trade count per direction in addition to the one called from the State function?!
    Thank You
    FB

    #2
    Hello FBraun,

    The entries per direction setting is for managed or unmanaged strategies and not strategies that use ATM's. When using ATM's none of the normal strategy properties apply, you would have to program your own logic to control the strategy and how often it enters.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello again,
      One more question, can I go ahead and delete the following code below from [ OnStateChange; if (State == State.SetDefaults) ] since it doesn't apply to a strategy with ATM than?

      EntriesPerDirection = 1;
      EntryHandling = EntryHandling.AllEntries;​

      Also, is it possible to request a sample of the entries per direction & entry handling code? So that I can get an idea of how to go about adding it to my strategy please?
      Thank You
      FB

      Comment


        #4
        Hello FBraun,

        Yes, the strategy will still have default values for those properties if you don't set them. They just won't do anything because you are using ATM's.

        I am not aware of any entry handling code, you can view the SampleATMStrategy that comes with NinjaTrader as that makes sure there is only 1 entry at a time.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mitchdavo, Today, 05:30 PM
        0 responses
        3 views
        0 likes
        Last Post mitchdavo  
        Started by MikePari, 01-13-2025, 10:36 PM
        2 responses
        15 views
        0 likes
        Last Post MikePari  
        Started by Pa_Baz, 12-14-2024, 09:40 PM
        21 responses
        309 views
        1 like
        Last Post NinjaTrader_LuisH  
        Started by reynoldsn, 01-06-2025, 06:21 PM
        7 responses
        49 views
        0 likes
        Last Post reynoldsn  
        Started by 37s29nala, 05-26-2022, 05:44 PM
        9 responses
        998 views
        0 likes
        Last Post rmhollon  
        Working...
        X