This is an example snippet that should allow for adding a trailing stop and trailing stop activation to almost any script. You can use it by setting a trailing stop alone. This will provide you standard trailing stop functionality allowing you to lock in profits and increase your stop-loss as the price moves in your direction. You can also set the trailing stop...
Library "myAutoviewAlerts" My Alerts Functions - To use with autoview @returns - These functions returns a string to use in alerts to send commands to autoview. You can open an order, place a stop or take order, close an opened order or a opened position, or open a hedge position. @param a = String - Account Identification @param e = String -...
Library "myAlerts" My Alerts Functions - To use with autoview f_order(_price, _qty, _position, _account, _exchange, _i, i_qtyTypeOrder, typeMsg, syminfoticker) - Write the entry order message Parameters: _price : - The order price _qty : - The order quantity _position : - The order side _account : - The user account _exchange : -...
What is the 3LS | 3 Line Strike Strategy? Incorporating the 3 Line Strike candlestick pattern into our strategy was inspired by Arty at The Moving Average and the amazing traders at TheTrdFloor . The Three Line Strike is a trend continuation candlestick pattern consisting of four candles. Depending on their heights and collocation, a bullish or a bearish...
Hello Traders I've build a strategy template building for you the AUTOVIEW commands I made this template based on this documentation: use.autoview.with.pink You can select whether you want to use an SL or not, a TP or not, using the borrow/repay feature (only for Binance), ... and it will build dynamically the Autoview commands and will send them when...
Hello traders My way to fight this situation is to stay productive. Hope some of my scripts will help you out as most of us are locked-down at home, hence have more time for trading - and preparing ourselves when the sun will shine on us again I - Concept This is an upgrade of this script which captured only the regular divergences This screener detects...
Hello Traders This is a proof of concept and a cool pinescript utility It displays a risk to reward division as a fractional value. For example Risk: 300 Reward: 600 This will be displayed as 1/2 as we can earn 2 units for a potential loss of 1 unit (600/300 = 2) for those wondering the NASA level mathematics behind :) Best regards Dave
Hello traders This is the strategy version of this script I - Concept I present to you, ladies and gentlemen, the first screener for harmonic patterns. Starting with an ACBD pattern screener this time!! I used the calculations from Ricardo Santo's script In short, he's using fractals (regular or Bill Williams ) for the pattern calculations. A...
Just simple script to act as conditional stop loss Problem : Traditional Market Stop or Limit Stop, you have to set it with specific price and wait for the price to drop/pump to your stop then it will trigger. But sometime ( so many times ) the price will leave a very long wick up or down to hunt the stoploss that already set in the exchanges.. then it turn...
Hello traders This is a simple algorithm for a Tradingview strategy tracking a convergence of 2 unrelated indicators. Convergence is the solution to my trading problems. It's a puzzle with infinite possibilities and only a few working combinations. Here's one that I like - Engulfing pattern - Price vs Moving average for detecting a breakout Definition...
Hello traders Someone requested the strategy version of the Supertrend CCI indicator It's a Supertrend not based on candle close but based on a CCI ( Commodity Channel Index ) How does it work? Bull event: CCI crossing over the 0 line Bear event: CCI crossing below the 0 line When the event is triggered, the script will plot the Supertrend as follow UP...
just publishing to share to novice pine coders like myself any feedback on layout/structure/shortcuts will always be appreciated, not that this is a long script with much that can go wrong short little what ever to show variable alert message needs to draw the number from a plotted number like line 18 and 19, and cant be gettin the numbers from line 14 and 16
Hello traders A bit of context Definition: Volatility is defined as the close of current candle - close of the previous N candle This is an alternative version of my Best Volatility Calculator The other version is displayed on a panel below. This one overlays on the chart using the "overlay=true" setting This indicator shows the average volatility, of...
Hello traders, This indicator shows the average volatility, of last N Periods, for the selected time frames. You can select up to 2 timeframes with this version Volatility is defined as the close of current candle - close of the previous N candle Presented as Currency, Pip, percentage labels in a panel below. Will calculate in real-time only for the current...
Hello traders Continuing deeper and stronger with the screeners' educational series one more time I - Concept This screener detects whether the price goes above, below or stays in between the Ichimoku cloud II - How did I set the screener The visual signals are as follow: - square: Above or Below Then the colors are: - green when above the cloud - red when...
Hello traders This is an upgraded version of my Dollar Cost Average (Data Window) script 1 - What is Dollar-Cost Averaging ( DCA )? Dollar-Cost Averaging is a strategy that allows an investor to buy the same dollar amount of investment at regular intervals. The purchases occur regardless of the asset's price. I hope you're hungry because that one is a...
Hello ladies and gentlemen traders Continuing deeper and stronger with the screeners' educational series one more time. This one is heavy crazy mega cool (pardon my french). I - Concept I present to you, ladies and gentlemen, the first screener for harmonic patterns. Starting with an ACBD pattern screener this time!! I used the calculations from Ricardo...
Hello traders Today I present you a Supertrend not based on candle close but based on a CCI (Commodity Channel Index) How does it work? Bull event: CCI crossing over the 0 line Bear event: CCI crossing below the 0 line When the event is triggered, the script will plot the Supertrend as follow UP Trend = High + ATR * Factor DOWN Trend = Low - ATR *...