Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Markttechnik Indicator and Strategy

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

    Markttechnik Indicator and Strategy

    Hi all,

    I tried to implement the Strategy of Michael Voigt.
    Therefore I created an Indicator for calculating the 1-2-3 and a Strategy for the position and stop handling.

    Generally the 1-2-3 calculation seems to work correctly.
    But I have problems with the position handling and need somebody for code review and helping me to finish that strategy.

    Please feel free to analyze my code.
    Hints, Bugfixes and Improvements are welcome.

    Thanks
    Firefox
    Attached Files

    #2
    Hi Firefox,

    Thank you for posting.

    What kind of problems are you having with the position handling?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      there are several problems ;-)
      But one of them is that a limit order is not executed because the price is lower than my limit.
      The problem is burried somewhere in my code. The calculation of the limit price seems to be wrong.
      Thats why I decided to make my code open source and get hopefully help from some experienced developers which like to contribute.

      Thanks
      Firefox

      Comment


        #4
        Firefox,

        First of all you would want to use Print() statements to verify values are what you expect - Debugging your NinjaScript code.

        For strategies add TraceOrders = true to your Initialize() method and you can then view valuable output related to strategy submitted orders through Tools > Output window - TraceOrders

        It may also help to add drawing objects to your chart for signal and condition confirmation - Drawing Objects.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        7 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X