Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

mathamatic coding of candle data

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

    mathamatic coding of candle data

    Currently i am only calling on the bottom wick is longer than the top wick in my second condition

    I want to code my condition to the bottom wick is 2x greater or more than the top wick

    can someone point me in the right direction


    Cheers.

    if((Close[0] > Open[0]) // CURRENT CANDLE IS GREEN

    &&(Open[0] - Low[0] > High[0] - Close[0]) //BOTTOM WICK IS LONGER THAN TOP WICK​

    #2
    Hello Christopher Leggit,

    Thank you for your post.

    If you are defining Open[0]-Low[0] as the bottom, and High[0]-Close[0] as the top wick, to check if the Bottom is at least 2x greater than the top you can do the following:

    if ( (Open[0] - Low[0]) * 2 > High[0] - Close[0]) )
    //do something

    Please let us know if you have any further questions.

    Comment


      #3
      I had tried *2 in-between but not defining the bottom wick with it's own set of brackets is where i was going wrong.

      thank you Gabby.

      kind regards

      Christopher

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      601 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X