TradeSmart22

MACD + CMF + EMA + Supertrend by TradeSmart

TradeSmart22 تم تحديثه   
Hello everyone and welcome to our first script release!

This script is one of many upcoming scripts. This one is a test for us, how it works, how you guys like this kind of stuff, and for feedback what we should change/improve at.

SCRIPT IS OPTIMIZED FOR:
EUR/USD 30 MINUTE TIMEFRAME

Video of the Strategy:
Search for “MACD + CMF + 200 EMA + Supertrend Trading Strategy Tested 100 Times with Great Results!” on our channel.
In this video you can find the exact strategy we programmed, just one added feature: Supertrend trailing stop loss. (position gets closed once the price hits the Supertrend indicator)

Now you can modify the following:
MACD settings
Supertrend settings
EMA settings
CMF settings

We will update the script with more and more features.
The first update will be:
Modifiable risk to reward ratio.

I will make a video of how to use this indicator next week, explaining all the features and more!
Hope you like it! Don't forget to let us know what we should change or improve. Thanks, and have a great day!

STRATEGY ENTRY RULES
LONG
When CMF is above 0 and price is under EMA. Also MACD has made a double cross above the zero line (meaning one cross down and one cross up by the MACD line). Then go long!

Note:
MACD or Signal must return under 0 in order to start a new position
If either of the MACD lines touches the 0 line before entry, we skip the trade and wait for the next signal.

SHORT
When CMF is under 0 and price is under EMA. Also MACD has made a double cross under the zero line (meaning one cross up and one cross down by the MACD line). Then go short!

Note:
MACD or Signal must return under 0 in order to start a new position.
If either of the MACD lines touches the 0 line before entry, we skip the trade and wait for the next signal.

TAKE PROFIT
When price hits the exit price (calculated from stop loss with the risk ratio), then exit with 50% of the position. The other 50% will stay open until the price hits the supertrend or the base stop loss.

STOP LOSS
When price hits stop loss then exit the position. Stop loss is calculated from the Supertrend and it is a trailing one, meaning it changes based on the movement of the price.

QUANTITY TO BUY
The quantity to buy is based on the Risk Per Trade % attribute. This means that we can set how much money we want to risk on one trade. Meaning that if we lose that particular position, then a Risk Per Trade % value of our equity will be lost.
Example: if you set the Risk Per Trade % to 1 % and you have a 100$ account balance, then if you loose the trade you will loose 1$ max.
ملاحظات الأخبار:
- Features:
- added input "Allow Long Entries", "Allow Short Entries"
- added input "Risk Reward Ratio"
- added input "Allow entries when only one line touches zero"

- Bug fixes:
- fixed bug when the supertrend direction is opposite of current position
- fixed bug when supertrend changed direction during an open position

- Changes:
- order names are now more descriptive
ملاحظات الأخبار:
refreshed default input values
ملاحظات الأخبار:
added feature to limit trades between dates and on specific days of the week
ملاحظات الأخبار:
Updated default parameters with new optimal values
ملاحظات الأخبار:
  • fixed bug where trailing loss was moving in wrong direction
  • fixed bug where exit price exploded
  • added feature to set first exit percentage
ملاحظات الأخبار:
added 'Capital Percentage' option
ملاحظات الأخبار:
HOTFIX: with the recent 'Capital Percentage' update, a bug was inserted where quantity calculation was wrong in some cases when 'Risk Percentage' was used
ملاحظات الأخبار:
HOTFIX: in some rare cases, the stop loss and exit price were calculated incorrectly due to the Supertrend changing direction at the exact time of the entry

Join our community of Smart Traders and get access to every Premium script: www.patreon.com/tradesmart224
نص برمجي محمي
تم نشر هذا النص البرمجي بمصدر غير مفتوح ويمكنك استخدامه بحرية. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني. لا يمكنك مشاهدة أو تعديل كود المصدر الخاص به.
إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

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