changing candle variable

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #177120 quote
    egyptiantraderegyptiantrader
    Participant
    Junior

    Hi. I’m very new to this to apologies for the simple question.

    I want to be able to choose how an EMA is applied at the moment it applied to the close but i want be able to chose in the settings of the indicator between open, close, midpoint etc.

    example

    buyshorterm = ExponentialAverage[buyshortT](open)

    Thanks, Mark.

    #177126 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Use CustomClose:

    buyshorterm = ExponentialAverage[buyshortT](CustomClose)

    then you will be able to choose from the property setting panel.

    #177127 quote
    egyptiantraderegyptiantrader
    Participant
    Junior

    Thank you.

    If I have more than one line and want to be able to choose for each how would I do that please?

     

    buyshorterm = ExponentialAverage[buyshortT](Close)
    buylongterm = ExponentialAverage[buylongT](open)

    #177138 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    In this case you will have to change them in the code, for each indicator, as you did in your example.

    #177143 quote
    egyptiantraderegyptiantrader
    Participant
    Junior

    thank you.

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

changing candle variable


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by egyptiantraderegyptiantrader
5 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/09/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...