BTC strategy for margin trading

Almost identical to the one I published before, but this one includes short orders as well.
I didn't spend much time backtesting, so there may be a different set of parameters that gives better results. Please let me know if you find something!
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


thanks for sharing. it looks like it produces best results on the hourly . is it designed for the daily chart ? have you tested it with other time frames
Some trades close as soon as they are opened
I used your code in this indicator: It's an interesting strategy. I noticed when you use strategy.close you get a much higher rate of return. I omitted those lines in my code since an opposing signal should close our existing position anyway?
repaints :/