This is an example of how to reference higher timeframe data without the
need for a 'security()' call.
I have attempted to create the function example:
with the purpose of wrapping up and pumping out all common relevent HTF
price data that's needed for your everyday indicators in a reliable fashion.
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...
Since the last BTC Short Squeeze on Bitmex maintenance I decided to made a Indicator plotting Long:Short ratio, and their respective graphs.
Green = Longs
Red = Shorts
Black = Ratio (Longs:Shorts)*Close <= Close price just for chart normalization!
I hope you find it useful.
NOTE: It isn't a prospective indicator, but try to find out who's bitching the market...
NOTE: Not useful for <15 mins timeframes.
I added a CMF to read market control. It gives a bit mire insight than the casual MACD Histogram, since it's formula is also based on volume and not just in price change.
How yo read CMF:
Possitive value = Bulls are in control of the market
Negative value = Bears are in control the market
Impulsive divergence =...
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.
I made a StochasticOscillator with BITFINEX:BTCUSDLONG & BITFINEX:BTCUSDSHOTS
Hope you enjoy it, and remember it's not about the asset's price, but about the asset's interest with these finantial tools.
A script for SMMA calculated on fixed timeframe, different from the main chart's timeframe.
As it's known, we can't use mutable variables with security. At the same time, SMMA references to the previous values. So it's impossible to create SMMA on different timeframe, just passing a variable with SMMA to security.
To overcome this restriction, we should use a...
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...
Well, after 25 tries I finally did it ._.
Here is the candlestick normalizer I was trying to achieve. In this way you can do a fast and not biased by price candlestick analysis, for example to catch engulfish and doji's on the go ;)
I also added a MAs crossing-over signal I optimized.
Btw, I will try to add volume signaling on this indicator. I had been...