RobertD7723

Jackrabbit.modulus.DCA

RobertD7723 Cập nhật   
This is the Dollar Cost Averaging (DCA) for the Jackrabbit suite and modulus framework.

The blue line is the current average price of the asset.

The red line is the deviation boundary. Price action must be below this line for buys to be signaled.

The green line is the take profit. Price action must be above this line for a sell signal to be generated.

Here is a list of the settings:

Buy method: DCA or Strategy. DCA allows the module to decide buys based upon the methodology (step, price). Strategy added to the average on the basis of a buy signal from the strategy, but only when it is below the deviation and is the most organic of dollar cost averaging.

Sell Method. Take profit or Steategy. Take Profit sells the asset as soon as the price action crosses above the take profit line. Strategy sells on the basis of a sell signal, but only if it is above the take profit. Selling never occurs at a loss, with the only exception being the exit point.

Methodolgy: Step or Price. Stepping allows a fixed and uniform averaging ant percise intervals of deviation. Price is a very aggressive approach that will drive the average down on the basis of the difference between the average and the current price action. The price methodology is VERY high risk.

Take Profit, which describes the average profit percent of the combined positions.

Deviation, which describes the percent boundary for which price action must drop before additional assets are purchased.

Sideways Breaker: This algorithm breaks the sideways rut by forcing a purchase after X days, minimum 1 day.

Exit Position: Internal stop loss expressed in the number of buys.

It is important that when you establish your sell signal, ALL positions must be sold to ensure the average profit. If required, use a CLOSE ALL message provided by your platform. Also, any platform specific DCA or Safety Orders will cause losses as this script can not track their value. It is recommended that these features not be used.

The Jackrabbit modulus framework is a plug in play paradigm built to operate through TradingView's indicator on indicatior (IoI) functionality. As such, this script receives a signal line from the previous script in the IoI chain, and evaluates the buy/sell signals appropriate to the current analysis.

This script is by invitation only. To learn more about accessing this script, please see my signature or send me a PM. Thank you.
Phát hành các Ghi chú:
Bug fix: made sure sideways breaker doesn't operate outside a trade.
Phát hành các Ghi chú:
Fixed visual distortion
Phát hành các Ghi chú:
Added directional movement of a long or short position.
Phát hành các Ghi chú:
Bug in signal line directional analysis for short positions.
Phát hành các Ghi chú:
Added a signal line.
Phát hành các Ghi chú:
Algorithm tuning.

Price method now tracks last buy price and requires next buy price to be lower than the last. This always ensures price action is dropping during accumulation.

Step method now tracks deviation as a fixed position from the initial price. This ensures that the deviation is always absolute and is more defensive with regards to the budget.
Phát hành các Ghi chú:
Bug in price method fixed. Buying only occurs as price drops (long). Short direction works as well.
Phát hành các Ghi chú:
Added statistics for buys/sells and max buys/sells

By request, added price aggression. If you do not plan your budget carefully, you will have your entire portfolio wrecked! This is for advanced users ONLY.
Phát hành các Ghi chú:
Signal line expansion to manage buy/sell only scripts within the IoI framework. Added redundancy checks for future expansion and verification.
Phát hành các Ghi chú:
Added "Ghosting" or ghost sell signals to address incomplete chart information that may lead to gaps in time data. This is purely diagnostic and should be used with extreme care.
Phát hành các Ghi chú:
Simplified Chart
Phát hành các Ghi chú:
Added selection dor historic or live data.
Phát hành các Ghi chú:
Added trade cycles and average p[rofit. Both can be used in message alerts.
Phát hành các Ghi chú:
Fixed visual error in average profit when shorting.
Phát hành các Ghi chú:
Rebuilt the entire module to be more effecient and effective. Added additional diagnostics.
Phát hành các Ghi chú:
Visual dioagnostics cleanup
Phát hành các Ghi chú:
Bug fix in the step equations.
Phát hành các Ghi chú:
Hot fix on price aggression.
Phát hành các Ghi chú:
Added ability to change color of text items for the take profit, average price, deviation, and price action average.

Added a new feature, fuzzy deviation.
Phát hành các Ghi chú:
Added last profit diagnostics
Phát hành các Ghi chú:
Method fpr pulling realtime/historic data has been rewritten. The algorithm is more effective and streamlined.
Phát hành các Ghi chú:
Added dynamic functionality between aggressive and defensive price action. This will not really benefit the step method, but is does have a significant impact on the price method.

This allows the best of both worlds by choosing trigger points of either the number of purchases or the percentage of the average from the the price.
Phát hành các Ghi chú:
Fixed chart and added limits
Phát hành các Ghi chú:
Added dynamic take profit (DTP).

DTP is broken down into a lower and upper value. When both are the same, DTP is disabled and the standard TP mechanics function as normal.

When the lower DTP is less then the upper DTP, TP is set to the lowest value and increments according to the maximum buys per cycle. When the upper DTP is less then the lower DTP, the TP starts as the upper valus and is decreased according to the maximum buys per cycle.

DTP will woek on both Step and Price methods.
Phát hành các Ghi chú:
Polarity correction
Phát hành các Ghi chú:
Simplified and cleaned up settings.

Dynamic deviation now has an upper and lower percentage that can fluctuate according to the maximum buys per cycle.

Also dynamic opperations now take place within the current cycle, as well as adapting over the life of total cycles.
Phát hành các Ghi chú:
Manual override added for advanced users to select number of step in between initial value (lower) and final value (upper).
Phát hành các Ghi chú:
Added exit percentage. This is not a stop loss in the traditional sense and it functions exactly as exit position in respect that it occurs on the next purchase.

Take profit and deviations now support fractional numbers.
Phát hành các Ghi chú:
One off bug fixed with exit positions.
Phát hành các Ghi chú:
A long standing and difficult bug is "Sideways breaker" has been finally resolved.
Phát hành các Ghi chú:
Added:

Shutdown after buys/cycle, This entry shuts down the recipe if the event that buys to cycle exceeds a desired level or the desired accumulation has taken place,

Shutdown after trade cycles, this shuts down the recipe completes the desired number of trade cycles.

Weighted deviation., This weights the deviation based upon the current average price and number of buys per cycle. Allows for a graceful non linear slowing process of accumulation that can dynamically adjust to the current situation.
Phát hành các Ghi chú:
Bug Fix: Minimum weighted effect is not convertage to percentage properly.
Phát hành các Ghi chú:
Updated sideways breaker to use a NON retracing candle counting technique.
Phát hành các Ghi chú:
Added expert abilities to use organic deviation and take profit.

This method can be activated by setting the initial and final values of deviation or take profit to 0. BOTH numbers must be set for this special feature to activate. Also DCA buying is DISABLED for this process. This feature is expert use only and can cause extremwe losses if not properly used. Careful attention must bew taken with this approach as all the normal safeguards are DISABLED.
Phát hành các Ghi chú:
Added feature to hold a position with NO further purchases after user selected positions have been aquired.
Phát hành các Ghi chú:
Fixed bug with holding position.
Phát hành các Ghi chú:
Added more statistics
Phát hành các Ghi chú:
Updated to version 5 Pine Script.
Phát hành các Ghi chú:
Added an escape methodology.

Made this module overlay main chart by default.
Phát hành các Ghi chú:
Added a "good enough" test.

This evaluation tests the concept that a profit is "good enough" if it is "close enough" to the desired take profit area.

Join my Patreon for exclusive access to Jackrabbit TV,

www.patreon.com/RD3277
Tập lệnh chỉ hiển thị cho người được mời

Quyền truy cập vào tập lệnh này bị hạn chế đối với người dùng được tác giả ủy quyền và thường yêu cầu thanh toán. Bạn có thể thêm nó vào mục yêu thích của mình, nhưng bạn sẽ chỉ có thể sử dụng nó sau khi yêu cầu sự cho phép từ tác giả. Liên hệ RobertD7723 để thêm thông tin, hoặc làm theo hướng dẫn của tác giả bên dưới.

TradingView không đề xuất trả tiền cho một tập lệnh và sử dụng cho đến khi bạn hoàn toàn tin tưởng tác giả và hiểu cách thức hoạt động của tập lệnh. Trong nhiều trường hợp, bạn có thể tìm thấy một giải pháp thay thế nguồn mở miễn phí trong Thư viện Công cộng của chúng tôi.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Hướng dẫn của tác giả

Please PM me for more information about using this script or visit the link in my signature. Thank you.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Cảnh báo: vui lòng đọc trước khi yêu cầu quyền truy cập.