MA line changes colour for uptrend and different colour for downtrend

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

    Hi,

    I’m having  difficulty finding a indicator where the Moving Average can be set to EMA and have the settings changed, but the most important part is the line colour changes when a uptrend and a downtrend is observed on the same MA.

    Attachment shows what i have in mind. I’ve seen this in MT4

    MA-with-colour-changes.png MA-with-colour-changes.png
    #14029 quote
    NicolasNicolas
    Keymaster
    Legend

    You can adjust the color change in each indicator window, see screenshot attached for an example.

    change-line-colors-in-parameter-window.jpg change-line-colors-in-parameter-window.jpg
    #14034 quote
    NickleBNickleB
    Participant
    New

    Nicolas, that was simple…thank you

    #50249 quote
    inadisinadis
    Participant
    Senior

    Hi Nicolas would you let me know how to put that trend change color option into code

    #50814 quote
    NicolasNicolas
    Keymaster
    Legend

    @inadis

    If it’s green, that’s because the current variable has a superior value than its previous one and vice-versa for red.

    green = value>value[1]
    red = value<value[1]
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

MA line changes colour for uptrend and different colour for downtrend


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
NickleB @nickleb Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by NicolasNicolas
8 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/01/2016
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...