OPEN-SOURCE SCRIPT
Atualizado Greer Leap - Self-Optimizing XGBoost Approx & Stats

using the XGBoost for the competition as a test.
Only a test for the Leap competition
Only a test for the Leap competition
Notas de Lançamento
All Credit to fenyesk who created the XGBoost. I converted this to a strategy and removed the alerts since that was redundant and removed the long and short signals because the trades show up so also redundant and I plan on using this for the Leap competition. Feel free to copy this but make sure to give credit to fenyesk Notas de Lançamento
Added barstate.isconfirmed to help reduce the number of alerts when to buy and sell.Notas de Lançamento
Fix to use strategy strategy.position_size instead of current_pos. Hopefully this will reduce the false positives?Notas de Lançamento
Fixed the ta.crossunder and ta.crossover The "ta.crossunder()" call inside the conditional expression might not execute on every bar, which can cause inconsistent calculations because the function depends on historical results. For consistency, assign the call's result to a global variable and use that variable in the expression insteadNotas de Lançamento
this script is flawed medium.com/@techacademies/why-your-perfect-tradingview-strategy-fails-in-live-trading-30a875226d6b
read that medium post.
I'm going to continue to play around with this but be warned !!!!!
Notas de Lançamento
🚫 DEPRECATED — DO NOT USEThis script is no longer maintained and has been disabled.
It does not provide trading signals and should not be relied upon for analysis.
This publication is kept for historical/reference purposes only.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.