FXEngineering

Cycles Strategy

FXEngineering Actualizado   
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!










Notas de prensa:
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.
Notas de prensa:
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.
Notas de prensa:
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 $.
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?