7Lots v2

The strategy is a counter-trend with a return to the moving average. Based on the DCA strategy, but greatly simplified to 7 lots (limit orders) and using the default martingale x2.5
Strategy description
Two moving averages are used. The first MA can be used as a filter for opening a position and also closing if the second MA is disabled. If both are enabled, then the position is closed by the second MA, and the first is used as a filter. There is also a separate take profit and if the price does not reach it, the position will be closed when returning to the MA, which will act as a stop loss, but the risk of liquidation is still present since the strategy does not have a regular classic stop loss.
Main parameters
TP & SL - selection of closing a position only by MA or take profit + MA. If only MA is selected, the strategy ignores the take profit value and always closes the position by MA.
MA settings
MA length from 1 to 200
Sliding type ALMA, SMA, EMA, VWMA, WMA, RMA
MA data - Open, High, Low, Close, HL2, HL3, OHLC4, OC2
MA shift in %. The MA shift is set in % above or below the current prices. For the First MA, this function allows you to use it as a filter for opening a position. For example, if you specify a shift much lower, for example -1% or -2%, then there will be less noise for opening a position, but this affects the number of transactions.
DCA group settings
Take profit %. Set the take profit as usual, but if the price does not reach the take profit, then the closing will occur by MA when the price returns to its values.
Take profit from. There is a choice of take profit from the average position, or by closing the previous bar. The latter increases the profit factor, but also increases the risk of liquidation if the strategy is used on perpetual contracts or futures.
Position Entry % - specifies the condition for opening a position. 0% - opening will occur immediately. 2% - opening will occur when the price falls 2% below the bar closing if the Long mode is set. If Short, then vice versa.
Grid Scale - classic progressive grid step
Next comes the setup of lots as a percentage of the deposit. Simply specify how many percent of each lot will be used from the total deposit. By default, a percentage for each lot is already allocated according to Martingale with a multiplier of x2.5, but you can calculate your own. You can specify 0, then the lot will be disabled.
Leverage. By default, 1.
Extra lot. This is the 7th lot that I decided to allocate separately from the main grid, since it is not always really needed. And it is calculated from the last lot of the grid. You can set it to how much lower percentage of the last lot to set it for and also what percentage of the deposit it will use. If you trade futures, then this lot, as an auxiliary one, can greatly average the position in case of strong volatility in the market.
Next, you can specify the start and end dates of transactions.
The table displays the total percentage of the deposit involved in trading at the moment. By default, all lots and leverage are set to 100% deposit load. The table also shows the number of transactions of the last 5-6 lots and extra, so that you can understand how many of them there were throughout the history of trading and possibly draw some conclusions for yourself. Especially useful for extra lots. Max Historical Drawdown (%) shows the historical price drop at the moment from the average open position. This will make it possible to analyze what leverage this strategy could withstand over the entire trading history. The date of this drop is also indicated.
For novice traders, it is recommended to use only on spot without the risk of liquidation. It is also best to use large time frames to see the whole picture, but you can also use a minute chart, there are no restrictions, everything is in your hands.
Tips. If you use minute charts, it is better to greatly increase the length of the MA from 20 and above. Hourly charts from 1-7. It is better to set up on spot and if you need futures, then use the same settings from spot, but with correction for futures. This strategy does not work well in Short, but shows excellent results for Long even when the market falls. When selecting settings, take into account sharp market fluctuations, Max Historical Drawdown (%) will show you this information in the table. You need to set up from the first MA, when you set up for the best result, then turn on the second MA and transfer the settings of the first MA to the second. Then fine-tune both MAs. The results can increase significantly, but this is not always the case. Sometimes just one MA is enough
The strategy is paid, tested with my own experience and money since 2022. Own development for opening a position.
Script que requiere invitación
Solo los usuarios autorizados por el autor pueden acceder a este script. Tendrá que solicitar y obtener permiso para utilizarlo. Normalmente se concede previo pago. Para obtener más información, siga las instrucciones del autor o póngase en contacto directamente con Len-in.
TradingView NO recomienda pagar o utilizar un script a menos que confíe plenamente en su autor y entienda cómo funciona. También puede encontrar alternativas gratuitas de código abierto en nuestros scripts de la comunidad.
Instrucciones del autor
Advertencia: antes de solicitar acceso, lea nuestra guía relacionada con los scripts que requieren invitación.
Exención de responsabilidad
Script que requiere invitación
Solo los usuarios autorizados por el autor pueden acceder a este script. Tendrá que solicitar y obtener permiso para utilizarlo. Normalmente se concede previo pago. Para obtener más información, siga las instrucciones del autor o póngase en contacto directamente con Len-in.
TradingView NO recomienda pagar o utilizar un script a menos que confíe plenamente en su autor y entienda cómo funciona. También puede encontrar alternativas gratuitas de código abierto en nuestros scripts de la comunidad.
Instrucciones del autor
Advertencia: antes de solicitar acceso, lea nuestra guía relacionada con los scripts que requieren invitación.