Lookback loop help please

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #159864 quote
    robdavrobdav
    Participant
    Veteran

    Hi Roberto

    Hypothetical use is good as it may help someone else in future.

    I only added momentum as an example.

    The logic is this:

    1) Look for condition A to be met (e.g. A = 7)
    2) Set a variable (e.g. B = Close) with Close as the value where condition A is met
    3) From this point forward, ensure Close is always less than value of B until condition C is met (e.g. A = 6) within x bars forward of Step 1
    4) Finally test if the High of the bar after where condition C is met, is higher than B.

    Thanks

    Rob

    #159869 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    I already coded a hypothetical example.

    Now tell me the correct conditions I have to test.

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

Lookback loop help please


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 16 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
5 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/15/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...