changing candle variable

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #177120 quote
    egyptiantrader
    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
    robertogozzi
    Moderator
    Master

    Use CustomClose:

    buyshorterm = ExponentialAverage[buyshortT](CustomClose)

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

    #177127 quote
    egyptiantrader
    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
    robertogozzi
    Moderator
    Master

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

    #177143 quote
    egyptiantrader
    Participant
    Junior

    thank you.

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

changing candle variable


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

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

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