Weekly Scan SetUp

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

    Hi

    I am trying to convert this line of code into  ProReal Time

    The code finds the Highest High Value for the past 15 weeks or days has a moving Av of 90 Exp. and a close greater than open with a big white candle.

    set_up:= C>Ref (HHV(C, 15), -1 AND C> Mov( C, 90 E) AND C>O AND C-O > 1.2*Mov (ref(ABS(C-O),-1). 10 S);

    set_up

    Thanks for any help

    Neville

    #87619 quote
    robertogozzi
    Moderator
    Master

    There you go, you can chenge all constants to whatever suits you best:

    HighestValue     = (high = highest[15](high))
    AverageCondition = close > average[90,1](close)     //0=sma, 1=ema, 2=wma,....)
    Bullish          = close > open
    Body             = abs(close - open)
    BigCandle        = Body >= (50 * pipsize)           //Big Candle is when its body is >= 50 (or whatever else) pips
    //BigCandle      = Body >= (range * 0.8)            //Big Candle is when its body is >= 80% (or whatever else) of its range
    Result           = HighestValue AND AverageCondition AND Bullish AND BigCandle
    RETURN Result

    line 6 is an alternative to line 5, in case you want to define a big candle not compared to the number of pips it has moved, but to its range (in such a case even a small candle can appear as a big one if it has short wicks).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Weekly Scan SetUp


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Gunyah @gunyah Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
7 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/24/2018
Status: Active
Attachments: No files
Logo Logo
Loading...