Duyck

security free MTF example - JD

This script is not intended for trading purposes but gives some examples how you can get values
from previous candles in other timeframes, without using security calls.

NOTE: the "open", "high" and "low" values are calculated "on the fly", as the bar progresses,
the "close" is determined at the end of the timeframe, so it's only know at the first bar of the next time period



JD .

#NotTradingAdvice #DYOR

Disclaimer.
I AM NOT A FINANCIAL ADVISOR.
THESE IDEAS ARE NOT ADVICE AND ARE FOR EDUCATION PURPOSES ONLY.
ALWAYS DO YOUR OWN RESEARCH!
Supprimer des scripts favoris Ajouter aux scripts favoris
Disclaimer.
I AM NOT A FINANCIAL ADVISOR.
THESE IDEAS ARE NOT ADVICE AND ARE FOR EDUCATION PURPOSES ONLY.
ALWAYS DO YOUR OWN RESEARCH!
JD.
A little tip is always nice!
BTC: 1G9xXYWSoxJR2ikkB7Px6RwBLC5pjHmwZD
http://paypal.me/jorisduyck

Commentaires

Thank you! Will be very useful for me.
+1 Répondre
Duyck EvoCrypto
@EvoCrypto, my pleasure!
Répondre
This publication will be featured in our "Best Scripts of The Month" selection. Thank you for your valuable contribution to the TradingView community, and congrats!
+1 Répondre
Duyck PineCoders
@PineCoders, thanks for the support!!
Glad if I can help!

Gr, JD.
Répondre
is it possible to give the option for HA higher timeframe candles as well?
+1 Répondre
Duyck TradeBuddy2019
@TradeBuddy2019

sure, in fact you can just use the ohlc values from this script and just calculate the Heikin Ashi values from there, using the standard Ha Calcs:

open = ( previous ha open + previous ha close ) / 2
high = max( open, close, high )
low = min( open, close, low )
close = ohlc4

Gr, JD.
Répondre
ok i see you cant add the proper syntax on here
+1 Répondre
Duyck TradeBuddy2019
@TradeBuddy2019, those are the values that you calculated for the open and close of the previous Heikin Ashi candles

so on the very first bar of the chart, these are going be just regular "open" and "close":

ha_open =( open + close ) / 2

on the next candle (and all the ones after that) this will be:

ha_open =( ha_open + ha_close ) / 2

Gr, JD.
Répondre
Duyck Duyck
in the last statement those should be the previous values but square brackets don't seem to display correctly!!
Répondre
is it possible to give the open for HA higher timeframe candles as well?
+1 Répondre
Accueil Screener d'actions Screener Forex Screener Crypto Calendrier économique Comment ça marche Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Amis référés Coins Mes tickets au support Centre d'aide Idées Publiées Followers Suivi(e) Messages privés Chat Se Déconnecter