define a operation to a straight line

Created at 15 May 2020, 00:45
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
EL

eliezer_barros

Joined 21.12.2018

define a operation to a straight line
15 May 2020, 00:45


Hi

In the example below the trend line is down (negative or decrease) and I want to know as to do indicate in system, for example, IF.......to do for example a open position

The expression to generated this tendency curve is:

var sma = Indicators.LinearRegressionForecast(source,15);

and now, continue with a conditional question.......

If...........

make something....open position...

Please, can you suggest me the information to solve this?

tks

Eli


@eliezer_barros