Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

HMA Color Change Strategy

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

    HMA Color Change Strategy

    I am not a programmer and Bertrand was kind enough to post this strategy in another tread.

    I tested it today on a CL 8 range chart using live data in my Sim account from 9AM to 11 AM EST and it seems to perform pretty well. 14 trades 10 winners. I attached a screenshot of todays trades, on one trade it took it did not close out the protective stop. I am looking to take the trade when the HMA changes color, it seems to get in a little late.

    I am also attaching the strategy and the HMA 2 color indicator.

    Anyone willing to tweak? I ran this onCL 8 range with 10 tick profit and 17 tick stop with HMA period of 20.

    Test it on live data yourself in SIM (do not trade live with real money).

    Thanks for your help,
    Al
    Attached Files

    #2
    Attached is an error that keeps occurring. How can i get to stop? something about over fill condition.
    Attached Files

    Comment


      #3
      Hello,

      Over-Fills is a serious issue that can occur when using complex entry conditions that bracket the market in both directions end up with both entries being filled instead of one being cancelled. Over-Fills can also occur when you place a trade quickly hoping to close a position while a prior order to close the same position already had an in-flight execution. The exact scenarios in which an over-fill can occur is highly dependent on the specific strategy programming. By default, NinjaTrader will protect against over-fills by halting the strategy.

      This would most likely take custom code to resolve.

      -Brett

      Comment


        #4
        Brett
        could you take a look at the code in post#1, and see if it is something obvious. Bertrand helped me with the basic code posted in another thread.

        Thanks,
        Al

        Comment


          #5
          Al, what stops / targets do you use in running the strategy? It could easily happen traded with too many racing order too close to the inside market, so moving for example a timeframe up and have a bit larger avg trades likely helps without starting to implement custom solutions to optimize order placement.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            The error I posted occurred on a 15 min chart with 20 tick stop & 20 tick target.


            Thanks,
            Al

            Comment


              #7
              This is amazing. Thank you very much

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by DJ888, 04-16-2024, 06:09 PM
              4 responses
              12 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by terofs, Today, 04:18 PM
              0 responses
              7 views
              0 likes
              Last Post terofs
              by terofs
               
              Started by nandhumca, Today, 03:41 PM
              0 responses
              6 views
              0 likes
              Last Post nandhumca  
              Started by The_Sec, Today, 03:37 PM
              0 responses
              3 views
              0 likes
              Last Post The_Sec
              by The_Sec
               
              Started by GwFutures1988, Today, 02:48 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Working...
              X