• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

calculated stop order price ?

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

    calculated stop order price ?

    can someone tell me what this log entry means in the pic ?

    shane
    Attached Files

    #2
    Shane,

    Are you using the same strategy in these two posts :

    http://www.ninjatrader.com/support/f...ad.php?t=52577

    http://www.ninjatrader.com/support/f...ad.php?t=52413
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      yes Adam,

      Is it related to the same thing ?
      the cause is my faulty code, right ?

      thanks
      shane

      Comment


        #4
        adam
        sorry, no but the code is similar ; here it is

        {
        // Condition set 1
        if (RSI(Rsi, Smooth).Avg[0] > 70
        && Rising(RSI(14, 3).Avg) == true)
        {
        EnterLong(DefaultQuantity, "");
        }

        // Condition set 2
        if (Falling(RSI(Rsi, Smooth).Avg) == true)
        {
        ExitLong("", "");
        }

        // Condition set 3
        if (RSI(Rsi, Smooth).Avg[0] < 30
        && Falling(RSI(Rsi, Smooth).Avg) == true)
        {
        EnterShort(DefaultQuantity, "");
        }

        // Condition set 4
        if (Rising(RSI(Rsi, Smooth).Avg) == true)
        {
        ExitShort("", "");
        }

        Comment


          #5
          shane,

          This is saying that your SetStopLoss() calculation is smaller than or equal to zero for some reason here.

          I see you are just setting it once :

          SetStopLoss("", CalculationMode.Percent, 1, false);

          I am wondering if that "else if" addition I showed you would fix this as well. Are you operating with COBC = false when you run the strategy? I can see in the code itself you have COBC = true.

          COBC = abbreviation for CalculateOnBarClose;
          Adam P.NinjaTrader Customer Service

          Comment


            #6
            i use true for cobc due to the renko bars.
            the false setting creates havoc with renko.

            shane

            Comment


              #7
              i will get rid of the stop loss and see what happens

              thanks Adam

              shane

              Comment


                #8
                shane,

                It looks like Matthew requested some files from you in another thread. We would like to take a closer look if possible so it would be appreciated if you could send these.

                Here is the thread : http://www.ninjatrader.com/support/f...ad.php?t=52413

                We believe there is some relation between all three issues you were describing in the threads, and would like to look closer.
                Adam P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Zuhier Dourgham, Today, 03:55 AM
                0 responses
                6 views
                0 likes
                Last Post Zuhier Dourgham  
                Started by JorgeDamien, Today, 03:47 AM
                0 responses
                2 views
                0 likes
                Last Post JorgeDamien  
                Started by jefferyfrench, Today, 03:45 AM
                0 responses
                3 views
                0 likes
                Last Post jefferyfrench  
                Started by alberts, Yesterday, 09:50 AM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Marco  
                Started by VincentMicah, Today, 12:46 AM
                0 responses
                3 views
                0 likes
                Last Post VincentMicah  
                Working...
                X