control number of bearish candles for a pullback??

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #159793 quote
    HaHa
    Participant
    New

    Hi,

    How do you code a pullback that you limit a number of bearish candles? I looked in the library but can’t find anything I could modify…

    Say, I look for stocks to trend above 20EMA then pulls back. Here, I want at least two red candles down but no more than five.

    And how can I identify that swing high? I’d like to enter when this pullback breaks that swing high.

    Thank you.

    #159798 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    Bearish = close < open
    c1      = summation[5](Bearish)
    c2      = summation[6](Bearish)
    Cond    = (c1 >= 2) AND (c2 = c1)

    Cond, if true, grants that there have been at least 2 bearish candle, but not more than 5.

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

control number of bearish candles for a pullback??


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Ha @ha Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/29/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...