Filter indicator strategy

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #176643 quote
    murre87murre87
    Participant
    Senior

    Hi.

    How can i use this indicator as filer in a strategy?

    Average Filter Regression

    #176645 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can embed the whole code in your strategy, like this one https://www.prorealcode.com/prorealtime-trading-strategies/optimization-ma-cross-machine-learning/, or you can CALL it this way:

    Periods    = 15
    MAtype     = 2
    indicator1 = CALL "Average Filter Regression"[Periods, MAtype](close)
    #176648 quote
    murre87murre87
    Participant
    Senior

    Thanks Rob.

    Another questing same topic.

    Timeframe(4h)
    A = call "My Indicator"[filter](close)
    
    Timeframe (default)
    filter, A, B, C = Call "My indicator"
    FILTER=RSI[14]
    A=1
    B=2
    C=3
    return filter, A, B ,C

    Problem: Your indicator return 4 values, but your code need 1

    #176650 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Line 2 and line 5 in your strategy must match (with different variable names as they belong to different TFs):

    X,Y,Z,W = call "My Indicator"[filter](close)

    If you don’t need all of them, you can replace the ones unneeded with IGNORED:

    ignored,Y,ignored,ignored = call "My Indicator"[filter](close)
    Midlanddave thanked this post
Viewing 4 posts - 1 through 4 (of 4 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

Filter indicator strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
murre87 @murre87 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/02/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...