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 md4866, 05-01-2024, 08:15 PM
                  2 responses
                  18 views
                  0 likes
                  Last Post md4866
                  by md4866
                   
                  Started by samish18, Today, 12:20 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post samish18  
                  Started by thread, 04-15-2024, 11:58 PM
                  3 responses
                  48 views
                  0 likes
                  Last Post Georg1o
                  by Georg1o
                   
                  Started by leojimenezp, 04-20-2024, 05:49 PM
                  4 responses
                  50 views
                  0 likes
                  Last Post leojimenezp  
                  Started by nicthe, Today, 09:24 AM
                  1 response
                  8 views
                  0 likes
                  Last Post nicthe
                  by nicthe
                   
                  Working...
                  X