Length body of the candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215558 quote
    RichardVeenRichardVeen
    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
    JSJS
    Participant
    Master

    Hi,

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

    RichardVeen thanked this post
    #215563 quote
    JSJS
    Participant
    Master

    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
    Scherm­afbeelding-2023-06-01-om-21.14.45.png Scherm­afbeelding-2023-06-01-om-21.14.45.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 JSJS
3 years, 4 months ago.

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