TradingView
QuantNomad
26 apr 2022 11:04

Weekly Returns with BenchmarkΒ 

Ethereum / TetherUSBinance

Descrizione

β‹…
Some time ago I published Monthly returns table. Now It's time for weekly one.
To get it work you need a pretty big screen, but I hope it will be useful for some of you.

Features of this table includes:

  • Display weekly returns of your strategy, benchmark, and alpha over this benchmark.
  • Select benchmark to be another instrument
  • Select the date from which you want to compute monthly returns
  • Show/hide benchmark and alpha
  • Choose colors for gradient for gain/loss values
  • Use it with any type of strategy
  • Use it with replay


Thanks to @MUQWISHI to help me coding it.

It's not about the strategy itself but the way you display returns on your chart. So pls don't critique my choice of the strategy and its performance πŸ™‚

Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.



Commenti
ThanosRising
β‹…
thank you for all your great work, ideas and scripts. Do you have a pine script performance table script for daily strategy results ?

QuantNomad
β‹…
@ThanosRising, Not Yet, but I'll take a look at it
TVAdmission
β‹…
@QuantNomad, this would be very useful.
Ether2020
β‹…
Just amazing my dear friend! Very usefull, clever and smart! Thank you so much!
iQ_Trader1
β‹…
Amazing and very helpfull πŸ‘
ks1267
β‹…
Could you please tell me how to change the color of the table background to be in Red and Green only (not shading like this). Red for loss and green for profits. I want them to be in these 2 color only. Which line of code should I change? I looked at the code but I have no idea which part below to table colour. Help me please.
TVAdmission
β‹…
Thank you! I found an error: TEMUSDT on Kucoin shows -22.3% in "Performance" Week "52" of "2023" on 1H timeframe and -40.9% in "Benchmark" Week "52" of "2023", but 2023 Week 52 has not started.
("Use current Symbol for Benchmark" is "true")
ArmelloGang
β‹…
hi, thanks for this table it's great. Would you be able to advise how I could make this table give me net profit results per month (e.g. totalling up the % profit for each closed trade)? I think it does it's calculations based on equity but i think it'd be great if it could show net profit in %
QuantNomad
β‹…
@ArmelloGang, Monthly version is here: tradingview.com/script/Iv1wlVa8-Monthly-Returns-with-Benchmark/
You can easily change P&L for closed trades by using strategy.closedtrades.profit function.
iQ_Trader1
β‹…
I've changed table_size = from tiny to small, but the letters are still not clear. I've been looking for font and color settings, but still can't find it in the script.

How do I change the font type and color? Thanks
Altro