32Min·

Update Trading Script Daytrading BoxStrategy

$OUST
$IREN (+0,63 %) In the meantime, my day trading script for the box strategy has also "matured" 😁


With approx. 1,600 lines of code, I now have a status with which I can carry out extensive tests. In addition to the script, Claude has also created a manual in DE and EN for the strategy and all settings, the code is also fully commented.


Towards the end, good exits were the trickiest part of the script. The entries were OK quite quickly, but sometimes the exit was not automatic or the profits were lost again until the trade reached the SL again at some point. But that has now been solved.


The trades are automated, in addition to the corresponding price action and confirmation candles, I can also set the exit scenarios quite flexibly. From fixed SLs and TPs to dynamic SLs above or below the candles to automatically trailing SLs etc.


Here is an example from Ouster of how the trade is started based on the signal candle (hammer) in the activation zone and then the SL runs from the break-even protection to the automatic transition to the trailing SL and take profit.

attachment
attachment
attachment

Now it's time to test extensively with many different stocks! I will report back once the tests are complete.


#trading

9
2 Commentaires

image de profil
It all sounds incredibly exciting and a bit like a shortcut to building up capital. Unfortunately, I don't understand how the bot works, i.e. the basics for setting it up. How do you do the backtesting? Do you know that your hit rate works well across all market phases?
1
image de profil
@market_whizkid_2675 I do backtesting directly in TradingView. Because I test many stocks (large caps to small caps), I cover a lot, including different market phases. The critical thing about the mean reversion strategy is that I have to suppress trades or hedge them closely if the trend is strong and breaks out of the box. I intercept this via my activation zones. I place them at the edges of the box with a hysteresis that works both outside and inside the box. And trades are only triggered in the activation zone, but only if the price action, i.e. previous and subsequent candles, match. The candle size in relation to the range is also taken into account. The script is now quite complex, even opening and closing ranges can be excluded, or the overriding trend can be included.
The hit rate does not have to be that high if the losers are strictly limited. The win rate is rarely over 50%, but the performance can still be over 100%.
All my trading knowledge has gone into it, so I am refraining from publishing it for the time being. If it works sustainably, then I can consider whether to publish it or just sell it.
Participez à la conversation