%deviation from 21 SMA

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #116006 quote
    frederikfrederik
    Participant
    New

    hej folks,

    sorry i do not know, if i am right here to ask my question but will try:

    ich want to build an INDICATOR that shows the 5-deiation of the current price from its 21 day SMA.

    Would urgently need help 8(

    thanks alot!

    #116010 quote
    NicolasNicolas
    Keymaster
    Legend

    The below code will plot the percentage deviation of the Close price from a 21-periods simple moving average:

    p = (close-average[21])/close*100
    return p
    #116018 quote
    frederikfrederik
    Participant
    New

    Super Nicolas,

    thanks alot!

    May I – sorry for that but i am new – ask how to enter the code into prorealtime indikators?

    Sorry for that 8(

    #116051 quote
    NicolasNicolas
    Keymaster
    Legend

    How to create a custom code in prorealtime:Ā Creating custom indicators video tutorial

    #116059 quote
    frederikfrederik
    Participant
    New

    PERFECT thanks Nicolas!

Viewing 5 posts - 1 through 5 (of 5 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

%deviation from 21 SMA


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
frederik @frederik Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by frederikfrederik
6 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/06/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...