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. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟