FXEngineering

Cycles Strategy

FXEngineering Cập nhật   
This is back-testable strategy is a modified version of the Stochastic strategy. It is meant to accompany the modified Stochastic indicator: "Cycles".

Modifications to the Stochastic strategy include;

1. Programmable settings for the Stochastic Periods (%K, %D and Smooth %K).
2. Programmable settings for the MACD Periods (Fast, Slow, Smoothing)
3. Programmable thresholds for %K, to qualify a potential entry strategy.
4. Programmable thresholds for %D, to qualify a potential exit strategy.
5. Buttons to choose which components to use in the trading algorithm.
6. Choose the month and year to back test.

The trading algorithm:
1. When %K exceeds the upper/lower threshold and then hooks down/up, in the direction of the Moving Average (MA). This is the minimum entry qualification.
2. When %D exceeds the lower/upper threshold and angled in the direction of the trade, is the exit qualification.
3. Additional entry filters include the direction of MACD, Signal and %D. Also, the "cliff", being a long entry is a higher high or a short entry is a lower low.
4. Strategy can only go "Long" or "Short" depending on the selected setting.
5. By matching the settings in the "Cycles" indicator, you can (almost) see what the strategy is doing.
6. Be sure to select the "Recalculate" buttons, to recalculate on every new Tick, for best results.

Please click the Like button and leave a comment if you appreciate this script. Improvements will be implemented as time goes on.

I am not a licensed trade advisor. This strategy is for entertainment only. Use at your own risk!










Phát hành các Ghi chú:
Updated trading algorithm: Oct. 9, 2020
1. Corrected errors on %K and %D thresholds. Signs were reversed.
2. Added buttons to enable/disable %K and/or %D thresholds
3. Added button to enable/disable Higher close and Lower Close Filter
In general, made the strategy behave more like the current Cycles Indicator.
Phát hành các Ghi chú:
1. Backtested and updated trading algorithm to compare highs with highs, and lows with lows.
2. Corrected sign error in the algorithm when going short.
3. Decoupled %D from exit strategy. Only Period %K will affect the exit, the Thresholds will not.
4. Updated text labels.
5. Updated Cycles indicator to match.
Phát hành các Ghi chú:
1. Updated trading algorithm so that there are switches for every filter. If no switches are selected, the strategy will place orders short if there is no current position. Make sure to select at least 1 filter.
2. Revised Exit strategy so you can now input a constant profit target and stop loss target value in $.
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

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