Self reference

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #194428 quote
    powel187
    Participant
    Junior

    Hello,

    can someone help me to understand why this piece of code has no output:

    rsihelp=rsi[14](close)
    
    if barindex > 0 then
    rsismoothed = (rsismoothed[1]+ rsihelp)/2
    else
    rsismoothed = rsihelp
    endif
    
    return rsismoothed as "RSI-Smoothed"

    How can I overcome this issue?

    Thanks in advance!
    Paul

    #194437 quote
    robertogozzi
    Moderator
    Master

    In line 3 replace 0 with 14 (the number of periods) and it’ll work.

    #194439 quote
    robertogozzi
    Moderator
    Master

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forum.

    Topic moved from the German forum.

    Thank you 🙂

    #194530 quote
    powel187
    Participant
    Junior

    Thank you Roberto!

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

Self reference


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
powel187 @powel187 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by powel187
3 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/01/2022
Status: Active
Attachments: No files
Logo Logo
Loading...