OPEN-SOURCE SCRIPT

Trade Manager (Open Source Version)

Cập nhật
Hello my young padawans looking for the FORCE to get richer on your next trade

I got pinged at least three times today asking where the hell is the indicator of the day. You asked, I delivered :)
Here's your free open-source Trade Manager Version. My associates might kill me for sharing that one... anyway this is a real GIFT.
I won't share such quality indicators too often for FREE so hope you'll appreciate its value. It can really help with your day to day trading (on top of making your charts looking more awesome)

This is an even better version compared to my previous Trade Manager Trade-Manager. It's basically a standalone version, meaning you'll have to update with 2 lines your own indicator and follow my educational post from yesterday (pasted it below also) to learn how to do it

Please read this educational post I published for you before proceeding further : How-to-connect-your-indicator-with-the-Trade-Manager

From here you normally connected the data source of your own indicator to the Trade Manager. If not, here's a reminder of the article mentionned above

Step 1 - Update your indicator

For the screenshot you see above, I used this indicator : Two-MM-Cross-MACD/. "But sir are you really advertising your other indicators here ??" ... hmmm.... YES but I gave them for free so ... stop complaining my friend :)

Somewhere in the code you'll have a LONG and a SHORT condition. If not, please go back to study trading for noobs (I'm kidding !!!)
So it should look to something similar

nUP = ma_crossover and macd_crossover
nDN = ma_crossunder and macd_crossunder


What you will need to add at the very end of your script is a Signal plot that will be captured by the Trade Manager. This will give us :

// Signal plot to be used as external
// if crossover, sends 1, otherwise sends -1
Signal = (nUP) ? 1 : (nDN) ? -1 : na
plot(Signal, title="Signal")


The Trade Manager engines expects to receive 1 for a bullishg signal and -1 for bearish .

Step 2 - Add the Trade Manager to your chart and select the right Data Source

I feel the questions coming so I prefer to anticipate :) When you add the Trade Manager to your chart, nothing will be displayed. THIS IS NORMAL because you'll have to select the Data Source to be "Signal"
Remember our Signal variable from the Two MM Cross from before, now we'll capture it and.....drumb rolll...... that's from that moment that your life became even more AWESOME

The Engine will capture the last signal from the MM cross or any indicator actually and will update the Stop Loss, Take Profit levels based on the parameters you set on the Trade Manager
It should work with any indicator as long as you're providing a plot Signal with values 1 and -1. In any case, you can change the Trade Manager you'll find a better logic for your trading

Now let's cover the different parameters of the tool

It should be straightforward but better to explain everything here

+Label lines : if unchecked, no SL/TPs/... will be displayed
+Show Stop Loss Signal : Will display the stop loss label. You have the choice between three options :
By default, the Stop Loss is set to NONE. You'll have to select a different option to enable the Stop Loss for real
++Percentage : Will set the SL at a percent distance from the price
++Fixed : SL fixed at a static price
++Trailing % : Trailing stop loss based on percentage level

The following is a KEY feature and I got asked for it many times those past two days. I got annoyed of getting the same request so I just did it
++Trailing TP: Will move the Stop Loss if the take profit levels are hit
Example: if TP1 is hit, SL will be moved to breakeven. If TP2 is hit, SL will be moved from TP1 to TP2


+Take Profit 1,2,3 : Visually define the three Take Profit levels. Those are percentage levels.
Meaning if you set TP1 = 2, it will set the TP1 level 2% away from the entry signal
Please note that once a Take profit level is reached, it will magically disappear. This is to be expected

I'll share in the future a way more complete version with invalidation, stop loss/take profits based on indicator, take profit based on supports/resistances, ...

I believe is such a great tool because can be connected to any indicator. I confess that I tried it only with a few... if you find any that's not working with the Trade manager, please let me know and I'll have a look

PS
I want to give a HUUUUUUUGE shoutout to the PineCoders community who helped me finishing it

Wishing you all the best and a pleasant experience with my work
David
Phát hành các Ghi chú
everyone: Please look at this tutorial for connecting your first indicator to the Trade Manager
How-to-Connect-a-Two-MM-Cross-Signal-version-to-the-Trade-Manager/
Phát hành các Ghi chú
- Fixed a small bug
Phát hành các Ghi chú
- Fixed a small inconsistency in the code. Wasn't affecting anything but better to publish a clean version
Phát hành các Ghi chú
- Removing because I want to update it and some followers suggested interesting features and reported a few bugs
- Will repost soon
Phát hành các Ghi chú
- Decommissioned script - reposted via another more recent post
Phát hành các Ghi chú
- decommissioned script
Moving AveragesOscillatorsstandalonestoplossstoplosssignaltakeprofittp1Trade ManagementtrailingtrailingstopTrend AnalysisVolatility

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


⭐️ Listed as an Official TradingView Trusted TOP Pine Programmer

📧 Coding/Consulting Inquiries: dave@best-trading-indicator

Telegram: Daveatt

⏩ Course: best-trading-indicator.com

Twitter: twitter.com/bti_trading
Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm