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 traderqz, Yesterday, 09:06 AM
        3 responses
        21 views
        0 likes
        Last Post NinjaTrader_ThomasC  
        Started by f.saeidi, Today, 10:19 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by kujista, Today, 06:23 AM
        5 responses
        15 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by traderqz, Today, 12:06 AM
        3 responses
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X