TradingView
TradeSmart22
7 Sep 2021 pukul 18.30

MACD + CMF + EMA + Supertrend by TradeSmart 

Euro Fx/U.S. DollarFXCM

Deskripsi

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.

Catatan Rilis

- 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

Catatan Rilis


refreshed default input values

Catatan Rilis


added feature to limit trades between dates and on specific days of the week

Catatan Rilis

Updated default parameters with new optimal values

Catatan Rilis

  • fixed bug where trailing loss was moving in wrong direction
  • fixed bug where exit price exploded
  • added feature to set first exit percentage

Catatan Rilis

added 'Capital Percentage' option

Catatan Rilis

HOTFIX: with the recent 'Capital Percentage' update, a bug was inserted where quantity calculation was wrong in some cases when 'Risk Percentage' was used

Catatan Rilis

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
Komentar
TalentaT
Hi, great script could you insert Alert to automate the trade ?
TradeSmart22
@marcellollp, Thank you! We are planning to, but we have a lot of work to do right now. Stay tuned!
ezequielmc
@TradeSmart22, It will be great if you insert alert to automate the trade or open the pine to includ it. Thanks!
charobin
Hey hello, thank you for the strategy, very inspirational!
I tried differents settings to get the same result than you (5000%)
but i can't reach more than 30%.
Could you please share your settings for BTCUSDTPERP 4h?
RobertK83
@TradeSmart22 I think there is a problem with net profit (and drawdown) with pairs with YEN. e.g. EURJPY 1H: 90 trades, 72% winning, profit factor 2,6 and it shows net profit 0,12%, drawdown 0,02%...
TradeSmart22
@RobertK83, Hey there thanks for letting us know. Since then we updated the script with new features. Can you check if the problem is solved now?
kkhaial
Any plans on allowing users to change the alert outputs?
cognac
Thanks you @TradeSmart22 for using your script. As @bjz71203 has mentioned, will you ever allow editing for the script itself? Adjustments to the start and end dates for backtesting might be useful.
TradeSmart22
@cognac, Thank you, I hope we can provide useful scripts for all of you! Our scripts probably will be locked as we are coding more and more complex scripts. Most likey we will release the code itself for the simplier scripts later on. We will update the scripts with start and end date customization, thanks for the tip!
vampy
Awesome script! ty sir.
Lebih lanjut