Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using a Ninjascript, I am having trouble establishing a long once I close a short

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

    Using a Ninjascript, I am having trouble establishing a long once I close a short

    I have created a simple ninja script -go long when a moving average is crossed.
    It has stops and targets.

    However, when that condition changes I would like to close that long postion and then establish a short when the MA crosses in the opposite direction.

    The establishement of the postion and the stps and tgts work fine....I just cannot seem to "reverse" the postion when the opposite occurs....

    thanks
    Mike

    #2
    Are you creating ATM strategies from your NinjaScript strategy?
    RayNinjaTrader Customer Service

    Comment


      #3
      I will attend the NinjaScript seminar ( I clearly need it)

      No, I am not establishing ATM strategies in association with the script.

      What do I select in ATM to tie my ninjascript strategy to an ATM strategy?

      Thanks

      Comment


        #4
        In most cases you would not need to attach ATM to a NinjaScript Strategy. Please check your Control Center log for any error reports. Then try to debug as per these tips: http://www.ninjatrader-support.com/v...ead.php?t=3418
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        31 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        151 views
        2 likes
        Last Post CaptainJack  
        Working...
        X