Extreme ScalpingThis is a test of an easy scalping method: buy if actual close is below forecast close and sell if actual close is above forecast close. Take profit and stop loss shall be very small (few pips) as in most of scalping strategies.
No filter is used for only long or only short positions, but you can select buy only or sell only based on other indicators or whatever you feel is the direction of trading.
NOTE: you can add this strategy to your chart but you should modify the backtest day otherwise you will get an error due to calculation limits of pine script. For example, on one minute chart, you should set the backtest day from today only. For past days, set both start day and and day.
I have also a study with alarms.
Please use comment section for any feedback.
Cari dalam skrip untuk "profit"
High Profit RunIdentify regions of high profit runs. Long or short. The line shows the profit percent in the current run.
Those might be the places that it is wise to take a profit instead of waiting longer.
Or a reverse counter reaction could be expected.
ATR based Pivots mcbwHey everyone this is an exciting new script I have prepared for you.
I was reading an old forex bulletin article some time ago when I came across this: solar.murty.net (or you can download the full bulletin with lots of other good articles here: www.forexfactory.com).
You can already buy this for metatrader (www.mql5.com) so I figured to make it for free for tradingview.
This bulletin suggested that you can reasonably predict daily volatility by adding or subtracting multiples of the daily ATR to the daily opening. Using this you can choose multiples to use as price targets and alternatively as stop losses. For example, if you already have a sense of market direction you can buy at market open place a stop loss at - 1 daily ATR and a profit target at + 3 ATRs for a risk to reward ratio of 3. If you are looking for smaller/quicker moves with a ratio of 3 you can have a stop loss at -0.25 ATR and a take profit at +0.75 ATR.
Alternatively this article also suggests to use this method to catch volatility breakouts. If price is higher than the + 1 ATR area then you can safely assume it will be going to the +2 ATR area so you can put a buy stop at + 1 ATR with a profit target at + 2 ATR with a stop loss at +0.5 ATR to catch a volatility breakout with a risk to reward ratio of 2!
Even further there are methods that you can use with ATRs of multiple window sizes, for example by opening two copies of this indicator and measuring recent volatility with a 1 week window and long term volatility within a 1 month window. If the short term volatility is crossing the long term volatility then there is a high probability chance that even more price movement will occur.
However I have found that this method is good for more than daily volatility , it can also be used to measure weekly volatility , and monthly volatility and use these multiples as good long term price targets.
To select if you want daily, weekly, or monthly values of the ATR of volatility you're using go to the settings and click on the options in the "Opening period". The default window of the ATR here is 14 periods, but you can change this if you want to in "ATR period". Most importantly you are able to select which multiples of the ATR you would like to use in the settings in "ATR multiple 1" which is the green line, "ATR multiple 2" which is the blue line, and "ATR multiple 3" which is the purple line. You can select any values you want to put in these, the choice of 0.25, 0.5, and 1 is not special, some people use fibonacci numbers here or simply 0.33, 0.66, and 0.99.
Repainting issue: This script uses the daily value of the Average True Range (ATR), which measures the volatility that is happening today. If price becomes more volatile then the value of the ATR can increase throughout the day, but it can never decrease. What this means is that the ATR based pivots are able to expand away from the opening price, which should not affect the trades that you take based on these areas. If you base your take profit on one of these ATR multiples and the daily volatility increase this means that your take profit area will be closer to your entry than the ATR multiple. Meaning that your trades will be more conservative.
While this all may sound very technical it is super intuitive, throw this on your chart and play around with it :)
Happy trading!
% Bars in ProfitUse this to determine how often your average entry price for shorts and longs over the last 11 trades are in profit or not.
Simple Stock StrategyThis is a simple and easy to use strategy for low-volatility stocks. It prints a BUY or SELL signal to alert you that certain conditions have been met. I use it as a time saver to help identify which charts I need to look at. You can adjust the inputs and properties to suit your needs. I would suggest allowing two or three orders.
BUY Signals
MACD Above 0
SMA Cross
Big Green Candles
SELL Signals
Profit Target %
Stop Loss %
Volatile Stocks - Simple Strategy w/Profit and StopThis strategy is based off of a script I wrote for another highly volatile asset, cryptocurrencies. It prints BUY and SELL signals based off of inputs that you can specify. I used this script as a time saver. If there is no signal on the chart, I'm less interested in analyzing it.
BUY SIGNALS
Bullish EMA Cross
Positive MACD Cross
Single-candle gains
SELL SIGNALS
Profit %
Stop Loss %
Naturally, I don't trade based off of the BUY and SELL signals alone, but it does help me identify the most important charts to look at.
Simple Alt Coin Strategy - EMA and MACD w/Profit and StopThis script prints BUY and SELL signals based on settings you input. I use it to save time while scrolling through charts deciding what alts I want to look at.
BUY SIGNALS
Positive EMA Crossover
Positive MACD Crossover
Single Candle Gains
SELL SIGNALS
Profit Capture
Stop Loss
I don't trade based just on the BUY or SELL from this strategy, but I have found that these indicators do very well well looking at the large cap alt coins. It backtests well.
Default Settings EMA 5/12/50, MACD 9/12/26, Single Candle Gain 10%, Stop 10%, Profit Capture 45%
DEMARSIV1 alerts and take profitThis version is the same as DEMARSI with following differences
I add take profit to short and long when DEMA MTF 1 is crossing DEMA MTF 2 (they are calculated different that why when you increase int2 in min to longer time the difference between them increse)
if you want the TP to be on signal of fast and slow DEMA RSI 2 (just change the code inside) by putting the long cond to be as the buy cond
for any questions please ask
poki buy and sell Take profit and stop lossThis indicator is based on modelius model of lazy bear weis model with ATR for the buy=B sell =S
in addition there is Take profit and stop loss in % both for short and for long
next stage is to know the resistance level and support based on bollinger marked in blue and red dots
Also included Parabolic Sar (blue and red dots rising up or down)
The color of bulish or bearish zone is based on the cross of Hull avreage and linear regression ( for each time set may need different setting for accuracy )
So how to use this scrupt to better profit
1. if you have B signal and its on lower support level then its good starting place for buy. look at the Parabolic Sar if its in agreement. The exit can be either by S =sell, Take profit that you decide on % or by end of Parabolic SAR upward
2. exact the oposite for short
Play with setting for the desired results or change modify this script for your purpose
Hull modelius take profit and stop lossThis model has Hull moving average, fibs in form of Bollinger ,SMA and Modelius model with ATR for buy and sell power based on weis volume. Inside alerts for buy and sell. take profit and stop loss for both longs and shorts
so have fun
Doji strategyThis is a simple strategy based on Doji star candlestick.
It places two orders: buy stop at doji star high or previous candle high and sell stop at doji star low or previous candle low.
Exit rules are with take profit and fixed stop loss or take profit and stop loss at doji min or max.
This strategy works very well with high time frames like Daily and Weekly because those are without noise in doji formation.
Each currency pair has its own optimal setting for TP and SL: it's up to user find the best ones.
I could implement SL based on ATR, maybe in next revision.
Please use comment section for any feedback.
Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
ATR and VIX For Profit Target and RSI LimitThe red line, based on ATR, should be used as a percentage gain goal. So I will set my profit targets based on this percentage.
The grey line is based on William's VIX and I use it to judge what RSI I should sell at.
RSI Multi Time Frame - Spot Panic Sell Moments and profit!Union of three RSI indicators: 1h, 4h and daily. In order to show 1h RSI, you have to set it as active time frame on the chart.
Purpose: spot "triple oversold" moments, where all the three RSI are under the threshold, which is 30 by default but editable.
Target Market: Cryptocurrencies. Didn't try it on other ones, may work as well. Fits Crypto well as, by experience, I can tell it usually doesn't stay oversold for long.
When the market panics and triple oversold occurs, the spot is highlighted by a green vertical bar on the indicator.
The indicator highlights triple overbought conditions as well (usually indicating strong FOMO), but I usually don't use it as a signal.
I suggest to edit the oversold threshold in order to make it fit the coin you're studying, minimizing false positives.
Special thanks to Heavy91, a Discord user, for inspiring me in this indicator.
Any editing proposal is welcome!
I reposted this script, as the first time I wrote it in Italian. Sorry for that.
Madrid Profit AreaThis study displays a ribbon made of two moving averages identified by a filled Area. This provides visual aids to determine the trend direction and pivot points. The moving average will be Red if its value is decreasing, and green if it is increasing. When both MA's are the same color we have a trend direction. If those are different then we have a trend reversal and a pivot point.
If combined with another ribbon then it can be configured so we have a pair of slow MA's and another pair of fast MA's , this can visually determine if the price is in bull or bear territory following the basic rules:
1. Fast MA pair above the slow MA Pair = Bullish
2. Fast MA pair below the slow MA Pair = Bearish
3. If the fast MA crosses over the slow MA it is a Bullish reversal
4. If the fast MA crosses below the the slow MA, it is a Bearish reversal.
The use of the ribbons without the price bars or line reduces the noise inherent to the price
Opening Range Breakout with 2 Profit Targets.Opening Range Breakout with 2 Profit Targets.
Updated Indicator now works on all Symbols with Many Different Session Options.
***Known PineScript Issue…While the Opening Range is being Formed the lines only adjust for that individual bar. Just reset Indicator after Opening Range Completes.
***All Times are Based on New York Time
Session Options Forex U.S. Banks Open (8:00), Gold U.S. Open (8:20), Oil U.S. Open (9:00), U.S. Cash Session - Stocks (9:30), NY Forex Open (17:00) , Europe Open (02:00), or if you choose Setting 0 the Session Runs from 00:00 to 00:00 (Midnight to Midnight).
***Ability to use 60 minute Opening Range, 30 minute, 15 minute, and many other options.
***However you can manually change the times in the Inputs Tab to adjust for any session you prefer. This is useful for Day Light Savings Adjustments. Also the default times work if your charts are set to EST Time. If you use A different time zone in your settings you need to Adjust the times in the inputs tab.
Initially Opening Range High and Low plot as Yellow Lines. If Price Goes Above Opening Range then Line Turns Green. If Price Goes Below Opening Range Line Turns Red.
By default the First Profit Target is 1/2 the Width of the Opening Range and the 2nd Profit Target is 1 Times the Opening Range. However these are Adjustable in the Inputs Tab.
By Default the Opening Range Length is 1 Hour. However, you can Change the Opening Range Length to 15 min, 30 min, 2 hours etc. in the Inputs Tab.
Plots a 1 Above or Below Candle when 1st Profit Target is Achieved, and a 2 when 2nd Profit Target is Achieved.
[ProfitTrailer:Feeder] VWAP %This script will help you create a strategy bases on VWAP % on BaseCoin & Top xx coin settings.
Enjoy & Like and follow if you like this kind of content.
[ProfitTrailer:Feeder] Market Trends Top X / BTCThis script will help you determine your MarketConditions Grouping for PtFeeder. You're able to input the specific top 10/20/xx pairs you want to use to fine-tune your groupings as well as specific BasePairs, there values will be automatically printed on the chart!
When measuring top coins trend, this is how many top coins to check by volume from the exchanges that you have configured PT Feeder for. For, the top 50 coins will be checked and their price change over the MeasureTimes property and the average change calculated. This average is used for the MaxTopCoinAverageChange property
If you like this kind of content, please 'like' and 'follow' and I'll continue publishing these kind of scripts!
Enjoy!
Profitable L 1800 Candle Highlight [Beta]
Certainly! Here's a user guide for the provided Pine Script code:
User Guide: 1800 Candle Highlight Indicator
Overview:
The "1800 Candle Highlight" indicator is designed to visually emphasize the 18:00 (6:00 PM) candle on the chart, providing clarity on its open and close prices, and highlighting its timeframe with a distinctive color.
Key Features:
Candle Highlighting: The indicator identifies the candle that opens at 18:00 and visually distinguishes it from other candles on the chart.
Open and Close Prices: The indicator plots the open and close prices of the 18:00 candle as step lines, making it easy to identify price movements during that timeframe.
Background Color: It colors the background within the 18:00 candle's timeframe with a transparent blue shade, providing further emphasis on that period.
Start Marker: A downward triangle shape marks the start of the 18:00 candle, aiding in identifying the beginning of the highlighted timeframe.
Usage:
Overlay: The indicator is designed to be overlaid on the price chart, allowing users to visualize the highlighted candle alongside price movements.
Interpretation: Traders can observe the open and close prices of the 18:00 candle relative to previous and subsequent candles, aiding in analysis and decision-making.
Timeframe Focus: The highlighted candle's timeframe can serve as a reference point for analyzing price action during specific hours, such as the end of a trading day.
Installation:
Access: Users can access the Pine Script editor within the TradingView platform to create a new indicator.
Copy and Paste: Copy the provided Pine Script code and paste it into the editor.
Save and Apply: Save the indicator and apply it to the desired chart, adjusting settings as needed.
Customization:
Color Scheme: Users can customize the colors used for highlighting, open/close prices, and background to suit their preferences and chart aesthetics.
Styling: Adjustments can be made to line styles, widths, and marker sizes to enhance visibility and clarity.
Compatibility:
The indicator is compatible with TradingView's Pine Script version 5 and can be applied to various financial instruments and timeframes supported by the platform.
Disclaimer:
The "1800 Candle Highlight" indicator is provided for informational purposes only and should not be considered as financial advice. Users are encouraged to conduct thorough analysis and consider multiple factors before making trading decisions.
Profitable Supertrend v0.1 - AlphaThis a script to try detect the best combination of supertrend parameters in a space of time. Sadly the script is slow. Evaluate all possibilities params is hard for a pinescript and my knowledge too. In some cases, when you want evaluate many time could be the script fails for timeout. Perhaps with time I could enhance. For this problem of speed the calculate of combinatios it's not complete: In factor use a increment of 0.2 in each param (0.1, 0.3, 0.5 ...) in period the increment for each value is 3. The range for factor it's from 3.0 to 12.0. The range of period it's from 10 to 43
My knowledge don't let me go more far. Perhaps with time I can enhance the script.
PROFIT INDICATORFirst let me tell you which indicators have been used in this script so that you have the confidence while taking the trade:
(a) Bollinger Band with 20 SMA Inside it - Currently it is off, you can turn it on from settings.
(b) HMA 33, I have added the option of using two HMA's simultaneously. You can use HMA, EMA, SMA as per your settings and it would be color trending.
(c) VWAP- you can turn it on from settings
(d) CPR- you can turn it on from settings
(e) EMA's 20, 50, 200. Currently off, you can turn it on from settings.
(d) SMA's 50 and 200. Currently off, yu can turn it on from settings, if you want to use 20 SMA you can use bollinger band basis that is 20 period SMA.
(f) Trend bar at bottom on the basis of 50 EMA.
(g) Half Trend
(h) Trend strength Detector
(d) EMA 50 high and low to show the pac channel. I am not using this however as per request I have added this. Currently, it is trun on and you can turn it off from settings.
(f) Auto Fib levels
Please use a stick note for few days and mention imp notes before taking trade to check if all the conditions are matching to take the trade.
Buy Condition:-
1. Bolling band should be widely open.
2. Check the support and resistance from CPR. Candle should close above support in green.
3. Check the trend bar at bottom, it should be green, if it is grey in colour dont enter in trade.
4. Candle should be closing above EMA 50 and its upto you if you need additional confirmation, you can use EMA 20, 50, 200 and SMA 50 and 200, this is optional.
5. You can use VWAP as support or resistance and you can turn it on from settings.
6. Trending HMA of 33 should be in green for buy.
7. Half trend Indicator should give buy signal.
8. Trend Strength Indicator for checking the strength of the trend, if the arrow is big upside, you can go for buy.
9. Exit from buy trade when it start showing very small arrow which means trend is about to change.
10.Exit buy trade at 61.8 Fib level
Sell Condition:-
1. Bolling band should be widely open.
2. Check the support and resistance from CPR. Candle should close below resistance in red.
3. Check the trend bar at bottom, it should be red, if it is grey in colour dont enter in trade.
4. Candle should be closing below EMA 50 and its upto you if you need additional confirmation, you can use EMA 20, 50, 200 and SMA 50 and 200, this is optional.
5. You can use VWAP as support or resistance and you can turn it on from settings.
6. Trending HMA of 33 should be in red for sell.
7. Half trend Indicator should give sell signal.
8. Trend Strength Indicator for checking the strength of the trend, if the arrow is big downside, you can go for sell.
9. Exit from sell trade when down arrows start showing very small in size which means trend is about to change.
10.Exit sell trade at 61.8 Fib level