Hello,
I am new to thinkScript and I would like to know how to display OHLC candles using this scripting language. I have searched over and over and could not find the answer.
The script below does plot OHLC prices, but not as single candles, but as simple lines:
plot price_Open = open;
plot price_High = high;
plot price_Low = low;
plot price_Close = close;
What I need is something like this:
plot (price_Open, price_High, price_Low, price_Close);
Unfortunately, this does not work.
I know there is a 'SetPaintingStrategy' instruction, and lots of styles associated with it, but no style for OHLC candles. Most probably I am not looking in the right direction:
PaintingStrategy:
https://tlc.thinkorswim.com/center/charting/thinkscript/reference/Constants/PaintingStrategy.html
SetPaintingStrategy:
https://tlc.thinkorswim.com/center/...unctions/Look---Feel/SetPaintingStrategy.html
In the TradingView.com scripting language you have the 'plotcandle' instruction that plots OHLC candles:
plotcandle(open, high, low, close, title='My Chart')
Thank you,
Alex
I am new to thinkScript and I would like to know how to display OHLC candles using this scripting language. I have searched over and over and could not find the answer.
The script below does plot OHLC prices, but not as single candles, but as simple lines:
plot price_Open = open;
plot price_High = high;
plot price_Low = low;
plot price_Close = close;
What I need is something like this:
plot (price_Open, price_High, price_Low, price_Close);
Unfortunately, this does not work.
I know there is a 'SetPaintingStrategy' instruction, and lots of styles associated with it, but no style for OHLC candles. Most probably I am not looking in the right direction:
PaintingStrategy:
https://tlc.thinkorswim.com/center/charting/thinkscript/reference/Constants/PaintingStrategy.html
SetPaintingStrategy:
https://tlc.thinkorswim.com/center/...unctions/Look---Feel/SetPaintingStrategy.html
In the TradingView.com scripting language you have the 'plotcandle' instruction that plots OHLC candles:
plotcandle(open, high, low, close, title='My Chart')
Thank you,
Alex