Looks to be doing good for short term swing trades. But, I am not sure if there is repainting. I tried to avoid buy/sell trades on same day - but wasn't successful.
As usual for back-testing - using 1000 as initial capital with 100% invested on each trade and no compounding so that it will be easy to compare with buy and hold. Trade with caution :)
Notas de prensa
⋅
Update capital and percentage of capital per trade as this is not long term strategy and hence not required to compare with buy and hold
Notas de prensa
⋅
Added delay in buy and sell signal to avoid buy/sell on same bars.
Hey mate, hope you don't mind me using your script and upgrading it to run automated bots and pine v5. Seems to be working well although its only in early testing phase. Let me know if you'd like to see it. It's my first ever script so its messy af :')
Trendoscope
⋅
@Timbo_021, No problem and please go ahead. If you are intending to republish the updates, just follow the guidelines mentioned in house rules and rules of MPL copyrights.
Timbo_021
⋅
@Trendoscope, Cheers! I have read and understand the house rules. I will republish with your name on the script also once I verify it works and fix up a few issues with the code.
douglas_bortoncello
⋅
Why does it provide buy and sell signal on the same candle?
Trendoscope
⋅
@douglas_bortoncello, Not sure if there is bit of repainting there. I tried to get rid of it. But, so far unsuccessful. Please suggest if you see something in the code which I don't :)
SNW777
⋅
@HeWhoMustNotBeNamed, Sir, would you like to update the pine script with version 5?