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!
從常用腳本中移除 新增至常用腳本
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

評論

Thank you! Will be very useful for me.
+1 回覆
Duyck EvoCrypto
@EvoCrypto, my pleasure!
回覆
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 回覆
Duyck PineCoders
@PineCoders, thanks for the support!!
Glad if I can help!

Gr, JD.
回覆
is it possible to give the option for HA higher timeframe candles as well?
+1 回覆
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.
回覆
ok i see you cant add the proper syntax on here
+1 回覆
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.
回覆
Duyck Duyck
in the last statement those should be the previous values but square brackets don't seem to display correctly!!
回覆
is it possible to give the open for HA higher timeframe candles as well?
+1 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出