FXEngineering

Cycles Strategy

FXEngineering Обновлено   
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!










Информация о релизе:
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.
Информация о релизе:
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.
Информация о релизе:
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 $.
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?