Get value from indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #164806 quote
    umebon
    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
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
4 years, 10 months ago.

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