Daily Change, save information...
-
How can we obtain and save this daily % of the market as a variable?

-
@ontradingx I don't think it's possible to get information from market watch.
-
@ontradingx That value refers to the difference from the current price minus the previous close, divide the result by the previous close and multiply by 100.
You can do this using a few "formula" blocks -
@ambrogio
Your calculation was correct, thank you very much for your help.
I wanted a little more help on a question.
I'm drawing the lines in % above and below as I'm showing it in the image.
But I am performing a calculation between one line and the other.
I want to create something that draws a grid of lines with a space difference between them of 0.25%So if my highest level is 1% I will have 4 lines
Is there a way to do this without having to put a block for each line?

-
@ontradingx @ambrogio
To be more exact what I want:
I don't know how the calculation is to find out where the 1% of the market is going to be.
I understand the part you mentioned about having the reference point which is at the close of the previous day's candle.
But based on that how do I calculate which price corresponds to 1%, or 2% above or below this price?
Sorry for my ignorance on this subject, I'm not that good at calculations. -
@ontradingx Please, I can't understand your purpose well, could you explain better on this chart ?

-
@ambrogio I will try to explain myself better.
I can see on your chart that you are taking the price of 1.13586 and placing a horizontal line to define that 0% is exactly at this point. Correct?What I want is that as soon as this 0% line is placed on the chart, I tell the EA the exact price for it to place the 1% line.
In some markets the 1% line is clearly 1000 points away.
Some other markets 1% does not represent 1000 points but 10000 points.
I want the EA to be able to identify where the 1% or 2% is in whatever market it is placed. -
@ontradingx Unfortunately I am not very good with custom codes or loops, what I did is draw the first two lines with movement of + 1% and - 1%. Someone else smart can solve how to draw the grid, indeed it also interests me.
