%deviation from 21 SMA

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #116006 quote
    frederik
    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
    Nicolas
    Keymaster
    Master

    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
    frederik
    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
    Nicolas
    Keymaster
    Master

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

    #116059 quote
    frederik
    Participant
    New

    PERFECT thanks Nicolas!

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

%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 frederik
6 years, 1 month ago.

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