TradeSmart22

MACD + CMF + EMA + Supertrend by TradeSmart

TradeSmart22 Updated   
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.
Release Notes:
- 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
Release Notes:
refreshed default input values
Release Notes:
added feature to limit trades between dates and on specific days of the week
Release Notes:
Updated default parameters with new optimal values
Release Notes:
  • fixed bug where trailing loss was moving in wrong direction
  • fixed bug where exit price exploded
  • added feature to set first exit percentage
Release Notes:
added 'Capital Percentage' option
Release Notes:
HOTFIX: with the recent 'Capital Percentage' update, a bug was inserted where quantity calculation was wrong in some cases when 'Risk Percentage' was used
Release Notes:
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
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?