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:
http://ift.tt/22nf4Xx
SetPaintingStrategy:
http://ift.tt/22nf4Xx
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:
http://ift.tt/22nf4Xx
SetPaintingStrategy:
http://ift.tt/22nf4Xx
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
How to plot OHLC candles in ThinkScript (from TDA ThinkorSwim)
Aucun commentaire:
Enregistrer un commentaire