Length body of the candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215558 quote
    RichardVeen
    Participant
    Junior

    Hi,

     

    Is it possible to program: the body of the current candle is > 50% of the previous candle?

    If yes, what is the instruction?

    #215561 quote
    JS
    Participant
    Senior

    Hi,

    abs(Close-Open) / abs(Close[1]-Open[1]) > 1.5

    RichardVeen thanked this post
    #215563 quote
    JS
    Participant
    Senior

    Broken down into “Bullish Candle” (color yellow) and “Bearish Candle” (color red)…

    If Close>Open and Close[1]>Open[1] and (Close-Open)/(Close[1]-Open[1])>1.5 then
    DrawCandle(Open,High,Low,Close) Coloured("Yellow") //Bullish Candle
    elsif Close<Open and Close[1]<Open[1] and (Close-Open)/(Close[1]-Open[1])>1.5 then
    DrawCandle(Open,High,Low,Close) Coloured("Red") //Bearish Candle
    EndIf
    Return
    Nicolas and RichardVeen thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Length body of the candle


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by JS
2 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/01/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...