candele indicator small body

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241159 quote
    tonb
    Participant
    Junior

    i am looking for an indicator that recognizes candels with a body between zero and 1 point.

    #241173 quote
    LucasBest
    Participant
    Junior

    smallbody = abs(close-open) <= 1

    Iván González thanked this post
    #241185 quote
    robertogozzi
    Moderator
    Master

    @tonbijl

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

    I moved it from the French support forum. Thanks 🙂

    The code above only works with assets/instruments that have a 1:1 price-to-pips ratio.
    I suggest to make it portable across all assets by using PIPSIZE:

    smallbody = abs(close-open) <= 1*PipSize
    Iván González thanked this post
    #241188 quote
    robertogozzi
    Moderator
    Master

    @tonbijl

    I just realized you created another topic in the correct forum. I deleted it as it’s no longer needed.

    #242050 quote
    tonb
    Participant
    Junior

    The indicator does not work on the NQ Future even when I use PipSize

    #242051 quote
    JS
    Participant
    Senior
    BodySize=abs(Close-Open)*pipsize
    
    If BodySize >0 and BodySize < 1 then
    DrawPoint(BarIndex,High,3)coloured("red")
    EndIf
    
    Return
    tonb thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

candele indicator small body


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
tonb @tonbijl Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by JS
1 year, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/05/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...