Announcement

Collapse
No announcement yet.

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.

                World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


                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 Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  648 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  369 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  109 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  573 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  575 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X