Help with Custom Script Code to Draw Horizontal lines at pre-defined price levels
I wanted to create a custom script that can draw horizontal lines at various price levels.
For Eg, I wrote the follwing code so that after loading the indicator, it will immediately draw two horizontal lines at two price levels 43.45 and 43.82. As per the syntax mentioned here PLOT_LINE - CTS Wiki
I wrote the following code.. but this is not working. Why ? Please help.
Your code works in terms of drawing lines, but what product are you looking at? If it's CL, remove the decimal and you should see the lines on your chart. We do not receive CL data from the exchange with a decimal, so we do not display it with a decimal. The price instead appears as 4345 or 4382, not 43.45 or 43.82. You can also use our pre-made horizontal line tool shown in the screenshot below. Just select Horizontal Line from the pointer dropdown menu, then click on the chart at the desired price level to draw the line.
If you have any questions about the products or services provided by CTS, please send me a Private Message or use the BMT "Ask Me Anything" thread
The following 2 users say Thank You to CTS1 for this post:
I was recently trading using Easyscreen and they had a great function on the DOM.
They had the normal volume profile next to the price ladder that built up through the day as normal.
However, there was an extra function where you could add another volume profile column, and the profile started collating from the moment the new profile was opened up OR when you pressed a reset button at any point. So there were two profiles next to each other.
To explain why this was so useful, it meant you could restart the profile for the afternoon session after the morning session (I'm in the UK so UK session and US session can be separated).
Another GREAT use is just before big news comes out. If there is a surprise number then this new profile is painted using buying and selling that is reacting to the new situation which is vital. But if this buying and selling is taking place within the existing volume profile then you can't see a thing.
Does the current price ladder have this capability, and if not is there a chance that this could be added?