kb0iaa

Pivot Target (5m Futures)

kb0iaa Mis à jour   
I am new to both Futures Trading and Pivots. Looking for shorter-term profitable opportunities, I have investigated the use of pivots from a higher timeframe. All the work of this script is performed using two lines. It calculates the pivot from the previous 2-hour bar and draws this pivot line on the 5-minute timeframe. Many many times, the price will reach back to this pivot point - sometimes fairly quickly within the same horizontal pivot line and sometimes farther out (4-hours to 6-hours, or within the next few days). Price tends to reach the level around ninety percent of the time, making for plenty of short-term trading opportunities.


I get the best results when I see the price rise or fall from the pivot, along with a second indicator indicating a possible reversal (my favorite is Divergence for Many Indicators v4 by LonesomeTheBlue. Who knew divergence (both regular and hidden) was so common and useful for finding probable reversals? If I find the price above or below the pivot line with a second signal, I'll place a buy or sell within that same 2-hour window the price tends to return back to the higher timeframe pivot for a nice profit very quickly. Other times it does take a little longer to return with only a small percentage of time not returning within a reasonable amount of time, or very unusually, not at all. The image above shows a number of profitable trading opportunities using a combination of the Pivot Target and LonesomeTheBlue's Divergence for Many Indicators v4. You can further limit risk by only taking trades that are in the same direction of the overall trend, possibly confirmed on a higher timeframe.

This script will only be visible on the 5-minute timeframe the way it is written right now. I wouldn't suggest shorter or longer timeframes unless some editing is done by you. It doesn't seem to work as well with stocks, but is best on Futures due to the wave-like natures of the futures market. Trade safe, trade with the trend, use stops and limits appropriately and stay safe.
Notes de version:
Just updated the script to prevent a repainting problem that I noticed a couple of days ago. The funny thing is that I hadn't noticed it at all while writing the initial code, whatever. It really bothered me, however, it repainted and I don't think it shouldn't be doing this when pulling data from a historical bar from a higher timeframe. Added "lookahead=" statement to the security function to prevent the repainting issue, now it works like it was supposed to. I apologize, I didn't realize that repainting was still an issue, especially with historical bars. The code was a written to look a little cleaner so it might be a little easier to follow too.

I also added a support and resistance option, set to show by default. It's kind of nice to see some indication of why the price may be consolidating around an area a little bit. It's helpful, at least in my case. Sorry if you don't like the colors, but I added the ones easier for me to see (#colorblindnesssucks).

Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?