TradingView
Fedra_Algotrading
19 feb 2022 21:00

[Fedra Algotrading LR + TTP Indicator Lite] 

Descrizione

How it works?
- It calculates the linear regression of the last X candles and define a range based on a linear regression deviation (represented by the 3 parallel lines over the last candle).
-Open trades based on the breakout of the deviation of the linear regression (represented by the yellow triangle).
-Advanced trend filter to not open trades against the trend consist in 2 SMA cross and and a few other conditions, including sptionally super trend (Represented by the red and green background).
-Percentage take profit (represented by the horizontal green line. configurable)
-Percentage stop loss (represented by the horizontal red line. Configurable
-Break even when a trade has already opened and there is a change of trend. Calculated in 1.5% when the price is under the yellow SMA.

Alerts in each case to receive notifications (BUY & SELL, TP BE SL).

Added labels with entry price and PnL of each closed trade to facilitate optimization

Note di rilascio

Version= 2.1
Cosmetic changes:
Buy label= blue
TP label = green
BE label = orange
SL label = red

Note di rilascio

Version 2.3
Added Unrealized PnL label (gray)

Note di rilascio

Instructions have been added to disable the closing in Break even (you only have to set it to a value greater than TP).

Note di rilascio

Added cumulative PnL and "Buy & hold" values to facilitate parameter optimization.
These values are in a table, at the top right of the chart.

Note di rilascio

Version 2.4
Added closed trades counter and Win Ratio to the backtest panel.

Note di rilascio

Win ratio background changes red/green when is negative/positive

Note di rilascio

Version 2.5
Fixed "Profit Factor" label instead o "Win Ratio"

Note di rilascio

cosmetic changes

Note di rilascio

V 3.0
Added a session filter. Now you can choose what week days the script can open a trade, and backtest with this filter too.

Note di rilascio

v 3.5
Added a 200 (configurable) SMA for trend confirmation (optional)
Commenti
ndcsm
Can you please give us the option to change the location of the buy, take profit label's please. They are too far down or up. I would like to be able to place them right under (the buy) and right over (TP) the candle. Also, can you make the yellow buy triangles bigger please? They are almost impossible to see. Thanks
xSHADx
Honestly, this is amazing work you did, seriously. One of the best indicators on this platform and I've tested many and have had a working strategy for at least 4 years. I'd be interested to know what settings you may recommend for a short-term trader/day-trader. I'm going to start testing this more vigorously. Excellent work!! I've been sharing with my peers.
Fedra_Algotrading
@xSHADx, Hello, I appreciate your kind words. The defaults are a good starting point in 15 minutes, but I use other variants of the strategy. I have given you access so you can do backtesting and experiment yourself.
ilyastarim35
Hi Fedra... Excellent work. Thank you so much. Can you ad short (sell) signals and take profit for short trades?
Fedra_Algotrading
@ilyastarim35, Hi, thanks!. Yes, that is in the roadmap. I am currently live testing different strategies for short entries. When I find one that has potential for statistically consistent profitability, I will incorporate it into the scripts.
ilyastarim35
@Fedra_Algotrading, Very nice... How can we contact you for details? İs the mail adress valid in youre youtube channel? İ'll send my phone for whatsapp conversation.
Fedra_Algotrading
@ilyastarim35, yes, you can contactme with the mail adress in my Youtube channel
ilyastarim35
@Fedra_Algotrading, İ send you an email... There is my number.
BigBirdy
Altro