Indicator: Marubozu candles with 8-point range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #222406 quote
    tonbtonb
    Participant
    Junior

    Hello i am looking for an indicator with a high low range of 8 points with the additional conditions.

    Short candele: High-low max 1 point / Low-Close max 1 point

    Long Candele  low-open max 1 point/ High-Close max 1 point

    The reason i want this as an indicator is that i want to trade on a small time frame with volume candels

    #222414 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go (not tested):

    C1 = (range = 8*pipsize)
    // Bearish candlestick
    S1 = (High-Open <= 1*pipsize)
    S2 = (Close-Low <= 1*pipsize)
    S3 = close < open
    SC = S1 and S2 and S3 and C1
    // Bullish candlestick
    L1 = (High-Close <= 1*pipsize)
    L2 = (Open-Low <= 1*pipsize)
    L3 = close > open
    LC = L1 and L2 and L3 and C1
    //
    Return (SC or SL)

    I have changed some of your expressions, as they seemed wrong.

Viewing 2 posts - 1 through 2 (of 2 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

Indicator: Marubozu candles with 8-point range


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
tonb @tonbijl Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
2 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/13/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...