Fedra_Algotrading

[Fedra Algotrading Strategy Trailing Stop]

Fedra_Algotrading Uppdaterad   
Algotrading strategy optimized for cryptocurrencies. Originally conceived to trade automatically through bots (that's how I use it), it also works to get signals and trade manually in any exchange.
It works in spot.

Buy the dip:
Attempts to buy on the dip, finding entries when the price makes abrupt dips that break deviation of the linear regression of the last periods.

Trend Detection:
Determines whether the market is in an uptrend or downtrend by crossing 2 SMAs + super trend in different temporalities. This affects the performance of the strategy. It works as a filter to avoid making entries in a downtrend. It also includes other advanced filters to find the best selling price on losses.

Break Even:
If the market enters a downtrend with an open trade, the Break Even sell is triggered, (configurable, default 1.5%). The intention is to close the trade as soon as possible, but without losses. The value of 1.5% is intended to cover commission costs and a possible spread.

Conditional SL Level: Determines a tolerance level in %, from which it is allowed to sell at a loss, while the price is above this level, the scrip will only sell at a profit.

% Trailing Stop Loss. The Stop Loss is placed a % below the price and accompanies it in the rises to make the most of an uptrend.
It allows you to easily configure the backtest period to optimize the parameters for consistent results.
The strategy calculates by default a commission of 0.1% on each trade to make the backtest more "pessimistic".
Includes advanced features for compatibility with different bots platforms in the market.
Risk management by % of equity or by maximum series of losses.

////////////////SPANISH///////////////////

Estrategia de Algotrading optimizada para criptomonedas. Originalmente concebida para operar de manera automática mediante bots (así la utilizo yo), funciona también para obtener señales y operar manualmente en cualquier exchange.
Funciona en spot.

Buy the dip:
Intenta comprar en el dip, encontrando entradas cuando el precio hace bajadas abruptas que rompen la desviación de la regresión lineal de los últimos periodos

Detección de Trend:
Determina si el mercado tiene una tendencia alcista o bajista mediante el cruce de 2 SMAs + super trend en distintas temporalidades. Esto afecta el funcionamiento de la estrategia. Funciona como filtro para evitar realizar entradas en una tendencia bajista. Incluye también otros filtros avanzados para encontrar el mejor precio de venta en pérdidas.

Break Even:
Si el mercado entra en tendencia bajista con una operación abierta, se activa la venta en Break Even, (configurable, por defecto 1.5%). La intención es cerrar la operación lo antes posible, pero sin pérdidas. El valor de 1.5% está pensado para cubrir los costos de comisiones y un posible spread.
Nivel de SL Condicional: Determina un nivel de tolerancia en %, a partir del cual se permite la venta en pérdidas, mientras el precio esté sobre este nivel, el scripto sólo venderá en ganancias

% Trailing Stop Loss. El Stop Loss se ubica un % debajo del precio y lo acompaña en las subidas para aprovechar al máximo un uptrend.
Permite configurar de manera muy fácil el periodo de backtest para optimizar los parámetros para resultados consistentes.
La estrategia calcula por defecto una comisión de 0.1% en cada operación para que el backtest sea más "pesimista".
Incluye funciones avanzadas para compatibilidad con diferentes plataforma de bots del mercado.
Administración de risego por % del capital o por máxima serie de pérdidas
Versionsinformation:
Added MA type input for MA Filter
////////////////
Se agregó la selección de tipo de MA al filtro de MA
Versionsinformation:
Fixed a bug in the last versions where the strategy did not always respect the MA filter. Please update and fix it if you are using version 4.x. Also re-generate the alerts if you were operating with it automatically. The improvements are very significant.
/////////////////////
Se solucionó un error en el que de las últimas versiones en que la estrategia no respetaba no siempre el filtro de MA. Por favor, actualiza y corrige si estabs usando la verrsión 4.x. Tamabién vuelve a generar las alertas si estabas operaado con automáticamente. Las mejoras son muy significativas.
Versionsinformation:
An optional percentage TP was added.
Removed Exit in Break Even and time conditional SL in favor of the trailing SL
Cosmetic changes
/////////////////////////////////
Se agregó un TP porcentual opcional.
Se eliminó la salida en Break Even y el SL condicionado por tiempo en favor del trailing SL para tener un Drawdown máximo controlado.
Cambios cosméticos
Versionsinformation:
Improved trend filter. Other cosmetic changes.
This strategy uses real-time price data. The backtest is less reliable with a very tight percentage, there may be crossovers that do not trigger the stop loss due to limitations of Tradingview historical data.
It is advisable to do a live test to get a better idea of performance.
The strategy calculates commissions at 0.01% for each trade, as usual in my scripts.
///////////Español
Mejorado el filtro de tendencia. Otros cambios cosméticos.
Esta estrategia utiliza datos de precio en tiempo real. El backtest es menos confiable con un porcentaje muy ajustado, puede haber cruces que no activen el stop loss por las limitaciones de los datos históricos de Tradingview.
Es aconsejable hacer un test en vivo para tener una mejor idea de la performance.
La estrategia calcula las comisiones en 0.01% para cada transacción, como es habitual en mis scripts.
Versionsinformation:
Some changes in the settings panel
Versionsinformation:
Bugfixes
Versionsinformation:
Versión 2.5
Explanations were added to the interface and some default values were changed to statistically better ones.
/////////////////
Se agregaron explicaciones a la interfaz y se cambiaron algunos valores por defecto por otros estadísticamente mejores.
Versionsinformation:
Version: 2.5.1
Cosmetic fix
Versionsinformation:
Version 2.6
Bug fix
Versionsinformation:
Version 2.7:
Fixed a bug that sometimes caused multiple purchase orders to be triggered simultaneously.
////////////
Se corrigió un bug que a veces hacía que se dispararan varias órdenes de compra en simultáneo.
Versionsinformation:
You should update your alerts to this latest version
////////
Deberías actualizar tus alertas con esta última versión
Versionsinformation:
Versión = 2.8
UI improvements and bug fixes
//////
Mejoras de UI y corrección de errores
Versionsinformation:
Fine tunning
Versionsinformation:
Version 3.1
Updated the close trade commando to avoid multiple signals
Versionsinformation:
Version= 3.2
Improved trend filter and cosmetic changes
Versionsinformation:
Version 3.9
Adjusted default values and cleaned the code
Versionsinformation:
Versión 4.0
Improved purchase condition. Just a small adjustment.
Versionsinformation:
Version 4.1
A small change in the script behavior. Now the trailing follows the price in real time, so it will follow the highs of each candle and not the closing value as it used to do. This allows to take better advantage of the price rises. To return to the previous behavior, you can set the price to "open".
Versionsinformation:
Version 4.2
Added PnL labels to closed trades and floating PnL
Versionsinformation:
Version 4.3
Bugfix
Versionsinformation:
Version 4.4
Cosmetic changes
Unrealized PnL label (gray)
Versionsinformation:
Version 4.5
Cosmetic changes
Historical PnL labels are off by default to clean the presentation

Endast inbjudanskript.

Tillgången till detta skript är begränsat till användare som har godkänts av författaren och kräver vanligtvis betalning. Du kan lägga till det till dina favoriter men du kan bara använda det efter att ha begärt och fått författarens tillstånd. Kontakta Fedra_Algotrading för mer information eller följ författarens instruktioner här under.

TradingView rekommenderar inte att du betalar för ett skript och använder det om du inte litar till 100% på författaren och förstår hur skriptet fungerar. I många fall kan du hitta ett bra alternativ med öppen källkod gratis i våra Community skripts .

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Författarens instruktioner

Författaren till detta skript kan inte längre ge åtkomst till det. Begär inte åtkomst.

Vill du använda det här skriptet i ett diagram?

Varning:Var god läs innan du begär åtkomst.