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

AMSuiteVolatilityStop - Indicator Problem

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

    AMSuiteVolatilityStop - Indicator Problem

    Hello Support,

    I am trying to use an indicator; Volatility Stop in my strategy. But, the problem is that it keeps on returning 0 and not the proper value it should return. Here is how i am trying to use the indicator:

    Code:
    value = AMSuiteVolatilityStop(2.5 , 10).Lower[0];
    I am attaching the indicator as well with this post. From what it seems to me, there is a problem with the CalculateOnBarClose property. The indicator runs on CalculateOnBarClose = true while i need my strategy to work on CalculateOnBarClose = false.

    Please advise.

    Thanks
    Umer
    Attached Files

    #2
    Hello Umer,

    Thank you for your note.

    I will test this indicator on my end and follow up with you on my findings.

    Comment


      #3
      Hello Umer,

      Thank you for your patience.

      I do not see the same behavior on my end, can you provide me with an example strategy that will have a value of 0 when calling AMSuiteVolatilityStop(2.5 , 10).Lower[0];?

      I look forward to your response.

      Comment


        #4
        Hello,

        This is how i am using it in my strategy:

        Code:
        AMSuiteVolatilityStop(BarsArray[2], 2, 10).Lower[0];
        Code:
        AMSuiteVolatilityStop(BarsArray[2], 2, 10).Upper[0];
        These give me 0 all the time. Please note that i am running this strategy with:

        Code:
        CalculateOnBarClose = false;
        In your runs which value of the above property did you use?

        Hoping to hear from you soon.

        Thanks
        Umer

        Comment


          #5
          Hello Umer,

          Thank you for your response.

          What is the third bar series added to your NinjaScript code (BarsArray[2])?

          I look forward to your response.

          Comment


            #6
            It can be any timeframe. But currently i am testing it for 10 minutes

            Comment


              #7
              Hello Umer,

              Thank you for your response.

              I have tested this as well and do not see the same results. So I may investigate this matter further can your provide full code for your indicator or strategy that can be tested on my end to reproduce this matter?

              I look forward to your response.

              Comment


                #8
                Hello Patrick,

                PFA a test script that i have run on my side and as you can see from the attached print logs as well as the screenshot below that the values are incorrect or zero.

                Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


                Please advise.

                Thanks
                Umer
                Attached Files
                Last edited by Master.Aurora; 07-18-2013, 12:31 AM.

                Comment


                  #9
                  Hello,

                  Thank you for your patience.

                  I have replied to your e-mail concerning this matter.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Likomatervy, Today, 05:35 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post Likomatervy  
                  Started by z679Gju, 05-03-2024, 02:37 PM
                  4 responses
                  33 views
                  0 likes
                  Last Post z679Gju
                  by z679Gju
                   
                  Started by athexinehowley, Today, 02:39 AM
                  0 responses
                  8 views
                  0 likes
                  Last Post athexinehowley  
                  Started by dtaylor, Today, 02:24 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post dtaylor
                  by dtaylor
                   
                  Started by RosaRichardow, Today, 12:21 AM
                  1 response
                  7 views
                  0 likes
                  Last Post marcus2300  
                  Working...
                  X