MA line changes colour for uptrend and different colour for downtrend

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14025 quote
    NickleB
    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

    #14029 quote
    Nicolas
    Keymaster
    Master

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

    #14034 quote
    NickleB
    Participant
    New

    Nicolas, that was simple…thank you

    #50249 quote
    inadis
    Participant
    Senior

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

    #50814 quote
    Nicolas
    Keymaster
    Master

    @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.

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 Nicolas
8 years, 3 months ago.

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