function for uptrend or downtrend

Questions about MultiCharts and user contributed studies.
my2108
Posts: 12
Joined: 06 Aug 2018
Has thanked: 1 time

function for uptrend or downtrend

Postby my2108 » 15 Jan 2019

HI All,
Is there any function within the MC that can determine whether a trendline is in uptrend or downtrend?
I want to develop a strategy that make long/short decision based on whether some indicators (such as ADX in DMI) is in uptrend or downtrend.

Tks.
Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: function for uptrend or downtrend

Postby TJ » 15 Jan 2019

HI All,
Is there any function within the MC that can determine whether a trendline is in uptrend or downtrend?
I want to develop a strategy that make long/short decision based on whether some indicators (such as ADX in DMI) is in uptrend or downtrend.

Tks.
Martin

When ADX > ADX[1], the trend line is UP.

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: function for uptrend or downtrend

Postby Svetlana MultiCharts » 16 Jan 2019

Hello, Martin,

There is no such pre-built function, but you can use indicators or code your own for that.


Return to “MultiCharts”