Self reference

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #194428 quote
    powel187powel187
    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #194439 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    powel187powel187
    Participant
    Junior

    Thank you Roberto!

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

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 powel187powel187
4 years, 3 months ago.

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