Forum

How to draw a text

Hi, I would like to create an indicator with an arrow and a text of what the arrow means. Does anyone know how to do it? Or better still have a source code for an indicator that does it. THANKS. Here is an example below

const variables

Hi, I am a little bit confused with the use of const inside a function, as an example below. The document says the following " The const specifier declares a variable as a constant, and does not allow to change this variable during runtime. A single initialization of a variable is allowed when

How do you use OnCalculate

I refer to the sample given in the documentation. How are we meant to use OnCalculate? With the old "start" event, we have a for loop to calculate the indicator per bar, how do we do that here with OnCalculate? why are these arguments have an ampersand, e.g. &open[]? What is the difference with the

Crosshair won't stick

When I hit Ctrl+F to activate crosshair for my cursor, it will only stay until I click the mouse on the screen and then it will revert back to the pointer mode. Why is that? Why doesn't it stay that way? Thanks