tso_trade

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

tso_trade Updated   
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.
Release Notes:
* Fixed the "Current Open Position" table, will be monitoring if it shows incorrect position or does not show it at all
Release Notes:
* Updated nicer indicator display picture
Release Notes:
* Minor fix
Release Notes:
* Modified labels a little so they do not overlap when there is a stop-loss and new position opens
Release Notes:
* Another fix for current open position table cell as it kept showing old position if it happened very recently, should be fixed now
Release Notes:
* 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.
Release Notes:
* Updating preview pic of the indicator
Release Notes:
* Another chart preview pic update
Release Notes:
* Updated the current open position table to be cleaner to read and easier to see Entry pivot, TP pivot and SL pivot
Release Notes:
* Updating chart visual preview image
Release Notes:
* Another fix to the position table
Release Notes:
* Minor fix
Release Notes:
* Yet another fix for the position table
Release Notes:
* Minor fix
Release Notes:
* Removed the large risky stars/additional labels for R5/S5 signals as it just makes the chart dirty
Release Notes:
* Moved pivot labels to the right a bit so that it's easier to see on larger scale
Release Notes:
* 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
Release Notes:
* 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)".
Release Notes:
* Minor wording change in script config options
Release Notes:
* 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!
Release Notes:
* Minor update to open position table, added (SHORT) / (LONG) to the open position so you immediately see position sentiment
Release Notes:
* Fixed a mistake with last update, which would cause TPs/Sls not be displayed > now should be working fine
Release Notes:
* Quick fix to current position table, was showing wrong thing
Release Notes:
* Seems like the pivot line colors and labels colors were not customizable, now they are
Release Notes:
* There was a bug where TP/SL stopped showing, fixed it
Release Notes:
* 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!
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact tso_trade for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

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.

Author's instructions

Please contact me if you have any questions.

Want to use this script on a chart?

Warning: please read before requesting access.