tso_trade

Camarilla Pivots - Signals, Alerts, TP and SL by Tech Store On

tso_trade 已更新   
This is a Camarilla Pivots indicator script, which will show signals, take profit and stop-loss on the chart with alerts based on Camarilla Pivot strategies:

LONG signals: S5 > S4, TP1: S4, TP2: S3, TP3: R3 SL: Manual | S3 > R3, TP1: R3, TP2: R4, TP3: R5, SL: S4 | R4 > R5, TP1: R5, SL: R3
SHORT signals R5 > R4, TP1: R4, TP2: R3, TP3: S3, SL: Manual | R3 > S3, TP1: S3, TP2: S4, TP3: S5, S4 > S5, TP1: S5, SL: S3

Mainly, the script is based on the pivot levels and price action. The script will trigger a signal if a supporting direction candle breaks or bounces at certain pivot, triggering a direction of the potential trade with the next pivot serving as a Price Target area, each signal will potentially wait for 3 Price Target areas and if they happen will show each on chart. An opposite direction pivots are used as a Stop Loss, which the indicator will show on the chart. If stop-loss will be hit, the script will not show take profit areas considering the trade is closed with a loss. Same way if take profit area 1 is reach, it is considered that SL is moved to Entry and therefore the script will no longer show stop-loss for that trade. This indicator was mainly tested via 15min timeframe, but feel free to try different timeframes as the concept is the same.

This strategy was extensively manually tested, trade by trade, with SPY 15min timeframe, for back-testing results for the whole 2021 year (this is simply if you would LONG/SHORT stocks, don’t forget that if you trade Options, there is also Theta present (options price decay over time), the win rate is: 86.12%
*** If a trade was uncertain > it was marked immediately as stop-loss
*** A position was always closed at the end of the day no matter what (profit/loss)

Config: Alerts need to be set for each signal, take profit and stop-loss, it is pretty much self-explanatory, just right click the chart, select “Add alert” > next to Conditions select “Camarilla Pivot…”, for each trade signal and stop-loss, make sure it is “Once per Bar Close” and for each take-profit make sure it is “Once Per Bar”. Stop-losses are confirmed price breaks, while take-profits – we just need to touch those pivots.

Config: By Default, indicator signals are given during regular BEST (after 3PM ET – it’s power hour, which often is unpredictable + market will be closing soon) US standard market hours: 9:30AM-3PM ET, take profit and stop-losses by default are set to 9:30AM-4PM ET (US standard market hours. Both can be adjusted via Inputs. If you wish for the signals/take profit and stop-losses to be tracked 24/7 > choose the “EMPTY” space for both.

Config: Number of candles/bars to track back for opened positions is the number of Candles/Bars tracked back for each position. You can change this setting as it relates to timeframe versus trading style (day trading/swing), play around to find your best settings, by default it’s 13, which is best for day trading/15M timeframe. Please note: if position takes “too long” to reach TP or SL, it may not show TP or SL, so you need to keep an eye on this. It is best to use slightly lower number for day trading, because otherwise if you receive the same signal more than twice during the day > it will not show TP or SL for the second/third/etc. position. This is custom for you to change though, so if you want longer position tracking for the day, choose: 26 candles (this is the amount of 15M candles during the day), but keep in mind that for second/third position > it may not show you the TP1/SL.

Config: The table showing positions will show current open position on the bottom cell if position is opened per indicator, you can move or even hide this table in the indicator settings. (Please note: this is decorative thing and sometimes may show a position open, which is not actually open, especially when the market is not currently open).

Tip: Note: if pivots are too far away from each other and there is either big profit already or another support/resistance indicator (VWAP, SMA, support & resistance levels, etc.) – it is wise to take some profit off and move SL to Entry to secure profits in case market decides to turn around. This is especially wise if you trade Options as they include Theta (options price decay over time). Please note: back-test results displayed above were done without VWAP.

Tip: R5 > R4 and S5 > S4 are riskier signals as there are no pivots above/below for the SL, the script does not have a built-in stop-loss level/indicator for these, so you will need to manually set your stop-losses for these signals. Last day pivots often can help with this or simply use most recent support & resistance levels.

Tip: If trading S&P: be careful opening positions near 3PM ET, as during the “power hour” – 3-4PM ET > volatility increases and direction of the price becomes much more unpredictable. Similar: if you are in profit, it is wise to close the majority of your position at 3PM ET, before the “power hour” starts.

Tip: Very conservative trading approach: after signal happens, wait for a bounce back (price going back touching the pivot) and open position right there, that way > SL will be smaller and better risk/reward ration.

Tip: There is no limit on how many signals the script will show if it meets the conditions (in case you miss one of the signals and conditions repeat > you can still get into decent trade at next signal if it matches the condition).

Note1: if candle closes crossing/breaking several pivots at the same time and that same candle will touch take profit pivot – the script is configured to minimize showing/alerting signals/TP/SL for such conditions, so that you don’t get a very dirty chart / spammed with alerts, however sometimes it may or may not show signals and/or take profits/losses incorrectly. Overall, when you see such huge candles, it means that market volatility is bigger than usual, so a caution should be practiced.

Note2: If the signal candle almost nearly touches the first take profit area > it’s best not to open a position (you literally opening it at the first take profit pivot, and it may bounce the other way from that same pivot).

Note3: You may sometimes see take profit/stop-loss indicators in the beginning of the day or simply when pivot levels change, this is due to script registering the position open per old pivot levels and then show you take profit/stop-loss per new pivot levels.
發布通知:
* Fixed the "Current Open Position" table, will be monitoring if it shows incorrect position or does not show it at all
發布通知:
* Updated nicer indicator display picture
發布通知:
* Minor fix
發布通知:
* Modified labels a little so they do not overlap when there is a stop-loss and new position opens
發布通知:
* Another fix for current open position table cell as it kept showing old position if it happened very recently, should be fixed now
發布通知:
* Removed the whole strategy trades from the table on the right, so that only current open position is shown, suggested by BYRON, looks cleaner like that.
發布通知:
* Updating preview pic of the indicator
發布通知:
* Another chart preview pic update
發布通知:
* Updated the current open position table to be cleaner to read and easier to see Entry pivot, TP pivot and SL pivot
發布通知:
* Updating chart visual preview image
發布通知:
* Another fix to the position table
發布通知:
* Minor fix
發布通知:
* Yet another fix for the position table
發布通知:
* Minor fix
發布通知:
* Removed the large risky stars/additional labels for R5/S5 signals as it just makes the chart dirty
發布通知:
* Moved pivot labels to the right a bit so that it's easier to see on larger scale
發布通知:
* Added simple, yet powerful automated bullish and bearish trend lines portion into the script, those could be very handy in terms of securing profits in case pivots are too far away from each other
發布通知:
* Based on feedback, added an optional selection for non-day traders, by default it should no longer show SL/TP from previous day positions, which is perfect for day traders. If you use larger timeframes/swing trading - you need to check the "Show yesterday's positions take profits and stop-losses? (Leave unchecked for day trading)".
發布通知:
* Minor wording change in script config options
發布通知:
* Minor adjustment, removed "(SHORT)" and "(LONG)" within signals descriptions as with the arrows / arrows colors it is already obvious which way the position is signaled, now should be even more cleaner chart!
發布通知:
* Minor update to open position table, added (SHORT) / (LONG) to the open position so you immediately see position sentiment
發布通知:
* Fixed a mistake with last update, which would cause TPs/Sls not be displayed > now should be working fine
發布通知:
* Quick fix to current position table, was showing wrong thing
發布通知:
* Seems like the pivot line colors and labels colors were not customizable, now they are
發布通知:
* There was a bug where TP/SL stopped showing, fixed it
發布通知:
* Had to revert back to certain version and now re-fixing the most recent fixes, will be checking through the whole script to make sure it is operational, there seems to be an issue with "Do not show overnight position take profit/stop-losses"

Trading like a machine!
僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請與tso_trade聯繫以獲取更多資訊,或按照以下作者的說明進行操作。

在您100%信任腳本作者並了解腳本的工作原理之前,TradingView不建議您購買腳本並使用它。在很多情況下,您可以在我們的社群腳本庫中免費找到一個不錯的開源替代品。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

作者的說明

Please contact me if you have any questions.

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。