I asked last week if anyone would be interested in new TradingView indicators. There were quite a few upvotes when we compare my posts but noone commented. Perhaps these were all bots but so what, I want to learn it and will proceed anyway.  I decided that this series will **NOT** be dead serious. It will be just my road through TradingView. This time I will not try to bore you to sleep...  and I will immediately fast forward to: # Creating a SYNTHETIC OHLC CHART I logged in to TradingView and saw that they provide **STEEMBTC** and **SBDBTC** from Poloniex but there is NO STEEMBTC like the one in the internal STEEM marked. ## How do you create one if it is not available??? Well If you attended elementary school, math in this case is simple:  ## How to create a candlestick chart for that? A recipe in 3 steps: 1. Take STEEM/BTC and SBD/BTC timeseries from Poloniex 2. Divide OHLC (Open, High, Low, Close) values as described above. 3. Draw the new thing with nice colors. ## Show me the code ``` //@version=2 // Syntetic STEEM/SBD candlestick chart based STEEM/BTC and SBD/STB from Poloniex // by @cryptomental // https://steemit.com/@cryptomental study(title = "SteemSBD indicator", shorttitle = "SteemSBD indicator") steembtc_o = security("POLONIEX:STEEMBTC", period, open) sbdbtc_o = security("POLONIEX:SBDBTC", period, open) steembtc_h = security("POLONIEX:STEEMBTC", period, high) sbdbtc_h = security("POLONIEX:SBDBTC", period, high) steembtc_l = security("POLONIEX:STEEMBTC", period, low) sbdbtc_l = security("POLONIEX:SBDBTC", period, low) steembtc_c = security("POLONIEX:STEEMBTC", period, close) sbdbtc_c = security("POLONIEX:SBDBTC", period, close) steemsbd_o = steembtc_o / sbdbtc_o steemsbd_h = steembtc_h / sbdbtc_h steemsbd_l = steembtc_l / sbdbtc_l steemsbd_c = steembtc_c / sbdbtc_c palette = steemsbd_c >= steemsbd_o ? lime : red plotcandle(steemsbd_o, steemsbd_h, steemsbd_l, steemsbd_c, color=palette) ``` ## And that's how it looks like  Last values should be similar to internal STEEM market but based on Poloniex trades. ## Compared to the internal STEEM market:  # What else? I published the indicator as a public one, you can insert it to your charts now. I did not consider Volume at all this time, but will probably use this indicator later on as a base for another indicators. That's it for today... uff I thought the post will take me 30 min and it took 1.5h with all the screeshots ;-) --- I forgot to mention that I borrowed the Old Fashion Night Gown Adult Costume photo from http://www.thecostumer.com Lat but not least: *I do not take any responsibility for anyone using it. Use at your own risk.* **Upvote if you like it!**
author | cryptomental |
---|---|
permlink | tradingview-experiments-round-1-synthetic-ohlc-chart-indicator |
category | trading |
json_metadata | {"tags":["trading","programming","tradingview","money"],"image":["https://ipfs.pics/ipfs/QmSXk1LzDNG9vfrCptfnQnrZH1mKQzEf4e4yR5WgakPwZz","http://www.thecostumer.com/images/Product/medium/22828.jpg","https://ipfs.pics/ipfs/QmfC5W2C2TUkkNdCFnTebwxL7Zk7v6ztYTqKVhhAhPyh3d","https://ipfs.pics/ipfs/QmRwCBh9CUBzVRvJdn8iC7c9fD4aw1ygdmmNcZmLjyHBa3","https://ipfs.pics/ipfs/QmQf4s2nQfTGm41VaSSUmLPC23Gqbv9XXF9TTFJe4J7SJ8"],"links":["http://www.thecostumer.com"]} |
created | 2016-10-11 08:19:33 |
last_update | 2016-10-11 08:31:21 |
depth | 0 |
children | 3 |
last_payout | 2016-11-11 09:36:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.251 HBD |
curator_payout_value | 0.078 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,064 |
author_reputation | 6,756,831,217,523 |
root_title | "TradingView Experiments ROUND #1 : SYNTHETIC OHLC CHART INDICATOR" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,502,547 |
net_rshares | 2,082,728,007,394 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
anonymous | 0 | 175,220,030,996 | 64% | ||
wang | 0 | 1,310,877,385,637 | 64% | ||
christoryan | 0 | 1,884,227,465 | 100% | ||
elyaque | 0 | 20,412,255,768 | 100% | ||
ausbitbank | 0 | 35,271,938,791 | 100% | ||
inertia | 0 | 97,704,185,609 | 100% | ||
the-future | 0 | 7,093,936,035 | 100% | ||
bitcoiner | 0 | 4,610,194,990 | 100% | ||
liberosist | 0 | 277,669,785,227 | 100% | ||
seb | 0 | 117,940,662 | 100% | ||
whalepool | 0 | 53,953,426 | 100% | ||
steemleak | 0 | 5,509,002,433 | 100% | ||
cryptos | 0 | 32,313,230,996 | 40% | ||
alexma3x | 0 | 409,707,864 | 30% | ||
cryptomental | 0 | 9,129,127,947 | 100% | ||
sociopat | 0 | 84,049,485 | 100% | ||
debmund | 0 | 818,645,387 | 100% | ||
jessicanicklos | 0 | 720,400,825 | 100% | ||
goldenunicorn | 0 | 35,812,312,462 | 100% | ||
drac59 | 0 | 640,917,159 | 100% | ||
mari5555na | 0 | 63,598,668 | 100% | ||
robotev1 | 0 | 95,288,804 | 30% | ||
robotev2 | 0 | 95,041,716 | 30% | ||
meerkat | 0 | 53,345,880,403 | 100% | ||
robotev | 0 | 3,499,206,065 | 30% | ||
yozragoretejar | 0 | 160,736,405 | 100% | ||
torominoku | 0 | 148,024,855 | 100% | ||
adohuginnumtus | 0 | 157,387,163 | 100% | ||
adorakuszutilar | 0 | 154,133,000 | 100% | ||
comeup | 0 | 100,547,275 | 30% | ||
lermana | 0 | 153,998,524 | 100% | ||
adodredfelhalsa | 0 | 150,765,404 | 100% | ||
giakovanud | 0 | 160,276,121 | 100% | ||
kegdaaxesmasher | 0 | 160,255,227 | 100% | ||
mirzon | 0 | 645,115,568 | 100% | ||
zulujinsaijurus | 0 | 152,112,814 | 100% | ||
starkos | 0 | 152,002,412 | 100% | ||
opilaskazrajar | 0 | 148,630,079 | 100% | ||
todero | 0 | 691,985,071 | 100% | ||
boradhugizan | 0 | 155,472,700 | 100% | ||
gardallzalsa | 0 | 146,025,565 | 100% | ||
nervis | 0 | 756,043,421 | 100% | ||
refezlaura | 0 | 154,629,696 | 100% | ||
goltimuromarn | 0 | 153,767,087 | 100% | ||
gaktilarfaecage | 0 | 153,491,556 | 100% | ||
tarna | 0 | 149,514,639 | 100% | ||
durne | 0 | 149,056,138 | 100% | ||
wandas | 0 | 148,895,448 | 100% | ||
asarez | 0 | 136,817,514 | 100% | ||
samujoraa | 0 | 145,577,246 | 100% | ||
katyau | 0 | 142,397,181 | 100% | ||
lauralorez | 0 | 145,089,186 | 100% | ||
androdaro | 0 | 145,711,951 | 100% | ||
frukip | 0 | 145,721,842 | 100% | ||
shawnig | 0 | 144,925,316 | 100% | ||
arshakaper | 0 | 141,157,033 | 100% | ||
sergey33 | 0 | 143,545,307 | 100% | ||
azizai | 0 | 143,339,525 | 100% | ||
adisa | 0 | 140,363,787 | 100% | ||
elenas | 0 | 696,618,694 | 100% | ||
monarevilret | 0 | 142,803,908 | 100% | ||
elen | 0 | 707,484,726 | 100% | ||
arus | 0 | 734,469,920 | 100% | ||
mieceneriulau | 0 | 142,645,607 | 100% | ||
amat | 0 | 111,285,627 | 100% | ||
julia112 | 0 | 62,942,036 | 100% |
I forgot to add that with this approach it is possible to create any synthethic OHLC chart, not just STEEMSBD. You can for example create STEEMPOT chart (cool name isn't it ;) to see how STEEM relates to POT (PotCoin) or any other synthetic pair that you need for trading....
author | cryptomental |
---|---|
permlink | re-cryptomental-tradingview-experiments-round-1-synthetic-ohlc-chart-indicator-20161011t084602264z |
category | trading |
json_metadata | {"tags":["trading"]} |
created | 2016-10-11 08:46:03 |
last_update | 2016-10-11 08:46:03 |
depth | 1 |
children | 0 |
last_payout | 2016-11-11 09:36:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 275 |
author_reputation | 6,756,831,217,523 |
root_title | "TradingView Experiments ROUND #1 : SYNTHETIC OHLC CHART INDICATOR" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,502,693 |
net_rshares | 55,776,512 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
joewantsfreedom | 0 | 55,776,512 | 100% |
What is the language of the code? I'm going away now but thanks to this article I'm gonna look at more of your posts as we might be in the same boat and it's always nice to have a peer doing something similar/same. Good luck, mate.
author | joewantsfreedom |
---|---|
permlink | re-cryptomental-tradingview-experiments-round-1-synthetic-ohlc-chart-indicator-20161011t082803047z |
category | trading |
json_metadata | {"tags":["trading"]} |
created | 2016-10-11 08:28:03 |
last_update | 2016-10-11 08:28:03 |
depth | 1 |
children | 1 |
last_payout | 2016-11-11 09:36:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 235 |
author_reputation | 8,280,737,591,335 |
root_title | "TradingView Experiments ROUND #1 : SYNTHETIC OHLC CHART INDICATOR" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,502,591 |
net_rshares | 0 |
Thanks! To answer your question: this is written in Pine Script, a proprietary TradingView.com language for indicators and strategies.
author | cryptomental |
---|---|
permlink | re-joewantsfreedom-re-cryptomental-tradingview-experiments-round-1-synthetic-ohlc-chart-indicator-20161011t083243109z |
category | trading |
json_metadata | {"tags":["trading"]} |
created | 2016-10-11 08:32:42 |
last_update | 2016-10-11 08:38:48 |
depth | 2 |
children | 0 |
last_payout | 2016-11-11 09:36:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 135 |
author_reputation | 6,756,831,217,523 |
root_title | "TradingView Experiments ROUND #1 : SYNTHETIC OHLC CHART INDICATOR" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,502,618 |
net_rshares | 0 |