Get value from indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #164806 quote
    umebonumebon
    Participant
    Average

    How do I get an value to my system from a indicator? I want to hide SL in my code but when i do it like this the backtest doesn’t produce the same result as if I put 1.3 in my system

    SL = CALL "Daxenlong_indicator"
    SL = 1.3 // StopLoss
    
    return SL AS "SL"
    #164810 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    This code:

    //SL = CALL "Daxenlong"
    SL = 1.3
    buy at -close limit
    graph SL
    SL = 1.3 // StopLoss
    return SL AS "SL"

    using line 1 or line 2 doesn’t change the plotted value.

    You must have written something wrong in your strategy or in your indicator.

    If you still can’t find the error attach both ITF files, please.

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

Get value from indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
umebon @umebon Participant
Summary

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

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