Criteria as percentage of price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8090 quote
    Sam MacySam Macy
    Participant
    Junior

    I want to have a criteria that displays a formula  as a percentage of the price for example:

    3period EMA – 30period EMA as a percentage of the close…

    Any ideas?

    #8095 quote
    AdolfoAdolfo
    Participant
    Senior

    Hi! Not really sure but wanted to try and here it is:

    EMA3 = ExponentialAverage[3](close)
    EMA30 = ExponentialAverage[30](close)
    
    percent = (EMA3/EMA30)*1/100
    
    return percent
    #8106 quote
    NicolasNicolas
    Keymaster
    Legend

    Or maybe something like this? :

    EMA3 = ExponentialAverage[3](close)
    EMA30 = ExponentialAverage[30](close)
    
    percent = ((EMA3-EMA30)/close)*100
    
    return percent
    #8209 quote
    Sam MacySam Macy
    Participant
    Junior

    Thanks guys

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

Criteria as percentage of price


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Sam Macy @iainhmclean Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Sam MacySam Macy
10 years, 3 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/26/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...