This is an educational script created to demonstrate few basic building blocks of a trend based strategy and how to achieve different entry and exit types. My initial intention was to create a comprehensive strategy template which covers all the aspects of strategy. But, ended up creating fully fledged strategy based on trend following.
This is an enhancement on ...
This is the finalized code released to the public that I created in a video linked here.
This indicators combines a Bollinger Band and Stochastic RSI to produce signals for possible price reversal. The signals are displayed by default as green arrows for bullish and red arrows for bearish.
To trigger a signal the indicator checks for the following:
Simple 3 EMA Strategy with plotted Take Profit and Stop Loss
- Middle EMA cross above the Slow EMA
- Set take profit and stop loss exit conditions based on ATR Indicator
- Fast EMA cross below the Middle EMA
Slow stochastic with ADX exhaustation and sell/entry points as orange/green circles.
This is a script I remade from Marco Valente's "RSI Combo" and Oshri17 "Slow stochastic".
Credits and thanks to them for sharing, I just expanded the diversity ^^
Hope you enjoy phit! ;D
Example of requesting Earnings, Splits, Dividends using pine-script.
That way is inner representation of data in TradingView, so it can be changed any time. It's just an example of requesting of the data.
Description of the series.
time: report date (unix time stamp)
open: estimate value
low: reported value
close: actual value
This time I took the pattern recognizer from a previous script I worked.
It overlays the Arrows on the chart.
#Maroon colour: Strong bearish signal
#Red colour: Bearish signal
#Dark Green colour: Strong bullish signal
#Lime: Bullish signal
NOTE: Also, you can untick the patterns you don't find useful, but I kept every pattern to get a complete...
Lots of moving averages are based on a weighted sum, the most common ones being the simple (arithmetic) and linearly weighted moving average. The problems with the weighted sum approach is that when your moving average is a FIR filter then the number of operations increase with higher values of length, and when the weights are based on a complex calculation this...
FOR EDUCATIONAL PURPOSES
There are multiple tools that allow you to place "scaled orders" on your exchange, namely Alertatron and Bybit Tools. This script is based on some Alertatron features, but you can use it for any grid like order placing strategy. Even if thats not your thing it's an example of how to use arrays in pinescript.
FROM PRICE - is the price to...
I have been working on this script the lasts days, it's a collaboration with an uruguayan mate.
* It has been optimized for 4h charts, use it on other at your own risk.
* Always use Stop Loss, since it might give false signals after a long trend.
* I'm still working on it, I'm going to add candlestick pattern filtering.
Thanks for your...
Example of manipulating a float series to:
• switch from one source to another
• maintain a level by referencing itself
This script publication is intended for:
• Educational Purposes
Who is it for?
Anyone who wants to learn how to change the position or state of an active float series.
Round function in PineScript is very simple and allows you to round numbers only to the closest integer number. This is a bit irritating because I very often have to round numbers to some decimal places and not integer.
So I created 2 functions I use all the time and now sharing them with you.
roundn - rounds the values in its first argument to the...
Simple signals example for Risk Management Wrapper
The unique part is that there is a single variable used for both Buy and Sell conditions.
Technically, a variable can have an infinity of values, so why not use that in our favour.
A value of -1 is used for the SELL alert condition , and a value of +1 is used for the BUY alert condition .
we all know how moving averages suffer from lag - they have a delayed response to change in the underlying values - regardless if the underlying values are price movement or some kind of indicator formula that we are trying to smooth using a moving average.
here's a simple technique that can help minimize the lag built into the moving average - you can use this...