Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

volume bar to be greater than 50 bars

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

    volume bar to be greater than 50 bars

    Good morning sir
    Please can you help me
    I want to specify a volume bar to be greater than 50 bars before
    I did this but it didn't work for me can you help me?​​


    Click image for larger version

Name:	volume.png
Views:	189
Size:	46.2 KB
ID:	1218000
    Example bar I want to select​

    Click image for larger version

Name:	chart.png
Views:	273
Size:	28.9 KB
ID:	1217999
    Attached Files

    #2
    Hi, thanks for posting. The code you posted is checking if the current up volume bar is greater than the up volume bar 50 bars ago. Please use the Print command to see the data coming from your strategy to get the expected results you are looking for. It can be found in the Misc folder of the condition builder. Also, see the MAX function that can find the maximum value of a series over a period of bars.

    Kind regards,
    -ChrisL

    Comment


      #3
      Can I have an example please?

      Comment


        #4
        Hi, Im happy to help out. The attached example uses MAX to find the maximum Up volume in the past 50 bars and compares it to the current one, drawing a dot and Printing when it finds a higher value than the max.

        Kind regards,
        -ChrisL
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        32 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        195 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        356 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        277 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X