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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?