guppy count back line

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #115329 quote
    PleidianPleidian
    Participant
    Average

    Does anyone have a Prorealtime version of the “Guppy count back line”?  The one in the library comes up funny on my price chart.

    #115330 quote
    PleidianPleidian
    Participant
    Average

     

    This is the MT4 code for the Guppy count back line if anyone is game enough to try and convert it to PRT.

     

    CBLhi:

    HighDays := Input(“Enter # days to cover last HIGH for CBL calc’n:”, 3, 55, 13);

    If(HIGH < HHV(HIGH, HighDays), {then …} PREV, {previous CBLhi, else…} If(Ref(L,-2) < Ref(L,-1) AND Ref(L,-2) < L AND Ref(L,-1) < L, {then …} Ref(L,-2), {2nd day back low, else…} If((Ref(L,-3)< Ref(L,-2) AND Ref(L,-3) < Ref(L,-1) AND Ref(L,-3) < L) AND (Ref(L,-2)< L OR Ref(L,-1) < L), {then … } Ref(L,-3), {3rd day back low, else…} If((Ref(L,-4)< Ref(L,-3) AND Ref(L,-4) < Ref(L,-2) AND Ref(L,-4) < Ref(L,-1) AND Ref(L,-4) < L) AND (Ref(L,-3)< L OR Ref(L,-2) < L OR Ref(L,-1) < L), {then… } Ref(L,-4), {4th day back low, else…} If((Ref(L,-5)< Ref(L,-4) AND Ref(L,-5) < Ref(L,-3) AND Ref(L,-5) < Ref(L,-2) AND Ref(L,-5) < Ref(L,-1) AND Ref(L,-5) < L) AND (Ref(L,-4)< L OR Ref(L,-3) < L OR Ref(L,-2) < L OR Ref(L,-1) < L), {then …} Ref(L,-5), {5th day back low, else…} PREV )))))

    and for the CBL from a LOW

    CBLlo:

    LowDays := Input(“Enter # days to cover last LOW for CBL calc’n:”, 3, 55, 13);

    If(LOW > LLV(LOW, LowDays), {then …} PREV, {previous CBLlo, else…} If(Ref(H,-2) > Ref(H,-1) AND Ref(H,-2) > H AND Ref(H,-1) > H, {then …} Ref(H,-2), {2nd day back high,else…} If((Ref(H,-3)> Ref(H,-2) AND Ref(H,-3) > Ref(H,-1) AND Ref(H,-3) > H) AND (Ref(H,-2)> H OR Ref(H,-1) > H), {then … } Ref(H,-3), {3rd day back high,else…} If((Ref(H,-4)> Ref(H,-3) AND Ref(H,-4) > Ref(H,-2) AND Ref(H,-4) > Ref(H,-1) AND Ref(H,-4) > H) AND (Ref(H,-3)> H OR Ref(H,-2) > H OR Ref(H,-1) > H), {then… } Ref(H,-4), {4th day back high,else…} If((Ref(H,-5)> Ref(H,-4) AND Ref(H,-5) > Ref(H,-3) AND Ref(H,-5) > Ref(H,-2) AND Ref(H,-5) > Ref(H,-1) AND Ref(H,-5) > H) AND (Ref(H,-4)> H OR Ref(H,-3) > H OR Ref(H,-2) > H OR Ref(H,-1) > H), {then …} Ref(H,-5), {5th day back high,else…} PREV )))))

    #115334 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    By searching this forum I found this https://www.prorealcode.com/topic/guppy-count-back-line/.

    Is that what you are looking for?

    Sorry, I did not fully read your first post. You only need to tick the option about scaling on the price chart (see pic).

    x-9.jpg x-9.jpg
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

guppy count back line


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Pleidian @pleidian Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/21/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...