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:	170
Size:	46.2 KB
ID:	1218000
    Example bar I want to select​

    Click image for larger version

Name:	chart.png
Views:	252
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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        58 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        133 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X