Attachments forums

List of attachments posted on this forum.


All files on forums: 135704

Help me to calculate slope

Eddie_83, Fri Apr 23, 2021 1:19 am

I have this indicator called Braid Filter
I am trying to modify it a bit to use it in EA for the purpose of backtesting.
this indicator contains 3 lines: Bullish line, bearish line, and Filter when crossover between bull and bear line happen and the cross surpasses the filter line that is a trend. check the pic below. I modified the code to display one line bounded by {1 & -1}, when line > 0 bullish , when line < 0 bearish when line = 0 no trade,
now I want to measure the slope of the cross over after it passes the filter line, and only display the signal when the slop is positive ;
can someone please help me with this, I tried Current - Current[i+1] but it didn't work

thanks in advance
All files in topic