Hi Daniel, first of all congratulations, every day you surpass yourself. lol
the content you bring is very rich, with technique and excellence in the creation of each line. always trying to do it in the best way.
Congratulations.
I can manage in visual.net with the basics.
but here i couldn't do anything more "serious". i even tried to take the tape reading part of your project but it didn't work here. i believe i have to do and review the whole project.
it's just that in the rush we always end up trying only the part we want and then the problems come. lol.
i'm trying to make an EA. but i'm having a problem with a variable, i'd like to know if you can help me.
in this part of the code you pass
IndicatorSetDouble(INDICATOR_LEVELVALUE, 0, 100);
but in this part the error says it has to be a double
IndicatorSetDouble(INDICATOR_CALCULATIONS, 1, (double) open_price);
IndicatorSetDouble(INDICATOR_CALCULATIONS, 2, (double) high_price);
IndicatorSetDouble(INDICATOR_CALCULATIONS, 3, (double) low_price);
IndicatorSetDouble(INDICATOR_CALCULATIONS, 4, (double) close_price);
the variables have been declared as double, I've even tried, but it still gives me an error.
I've tried INDICATOR_DATA instead of INDICATOR_CALCULATIONS and it's still giving me an error.
I asked to show it on the screen and the variables are loading correctly with double values.
33573.43 33573.44 33569.979999999996 33569.99
Sorry to bother you, I don't even know if I could post it here
if you can help me I'd be very grateful.
Anderson.
but this part gives an error saying it has to be a double
IndicatorSetDouble(INDICATOR_CALCULATIONS, 1, (double) open_price);
IndicatorSetDouble(INDICATOR_CALCULATIONS, 2, (double) high_price);
IndicatorSetDouble(INDICATOR_CALCULATIONS, 3, (double) low_price);
IndicatorSetDouble(INDICATOR_CALCULATIONS, 4, (double) close_price);
the variables were declared as double, I even tried, but it still gives an error.
I've tried INDICATOR_DATA instead of INDICATOR_CALCULATIONS and it's still giving me an error.
I asked to show it on the screen and the variables are loading correctly with double values.
33573.43 33573.44 33569.979999999996 33569.99
sorry to bother you, I don't even know if I could post it here
if you could help me, I'd be very grateful.
Anderson.
Two things:
First: When you post code, do it using ALT + S, so the code is more obvious and we can understand that it's code and not a comment ... The whole thing will look like this to everyone:
IndicatorSetDouble(INDICATOR_LEVELVALUE, 0, 100);
This will make it much easier to understand ...👍
Secondly: Are you trying to make Expert Advisor code or an Indicator ?!!?🤨🤨 ... Because I don't understand what you're trying to do ...
Two things:
First: When you post code, do it using ALT + S, so that the code is more evident so that we can understand that it is code and not a comment ... The whole thing will look like this to everyone:
This will make it much easier to understand ...👍
Secondly: Are you trying to make Expert Advisor code or an Indicator ?!!?🤨🤨 ... Because I don't understand what you're trying to do ...
OK,
IndicatorSetDouble(INDICATOR_LEVELVALUE, 0, 100); mas nessa parte da erro dizendo que tem que ser double IndicatorSetDouble(INDICATOR_CALCULATIONS, 1, (double) open_price); IndicatorSetDouble(INDICATOR_CALCULATIONS, 2, (double) high_price); IndicatorSetDouble(INDICATOR_CALCULATIONS, 3, (double) low_price); IndicatorSetDouble(INDICATOR_CALCULATIONS, 4, (double) close_price);
I've tried INDICATOR_DATA instead of INDICATOR_CALCULATIONS and it's still giving me an error.
I asked to show it on the screen and the variables are loading correctly with double values.
33573.43 33573.44 33569.979999999996 33569.99
OK, thanks for your help, I'll always do this with code.
I'm creating an EA.
in reality it's supposed to be a timeless chart set up by price.
OK,
I've tried INDICATOR_DATA instead of INDICATOR_CALCULATIONS and it still gives me an error.
I asked to show it on the screen and the variables are loading correctly with double values.
33573.43 33573.44 33569.979999999996 33569.99
ok, thanks for the help, I'll always do this with code.
I'm creating an EA.
it's actually meant to be a timeless chart set up by price.
Read this part of the documentation : https://www.mql5.com/en/docs/runtime/running, it will help you understand why it's going wrong ...😁👍

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Check out the new article: Developing a Replay System — Market simulation (Part 05): Adding Previews.
We have managed to develop a way to implement the market replay system in a realistic and accessible way. Now let's continue our project and add data to improve the replay behavior.
You can think of it this way: we have a file with all trading ticks executed on a certain day. However, using only the contents of this file, we will not be able to get really useful information from any indicator. Even if we use, for example, a 3-period moving average, which is exactly what is used in the JOE DI NAPOLI system, the signal will not be generated until at least 3 bars are created. Only after that, the moving average will be displayed on the chart. From the point of view of practical application, until today, this system is completely useless and inoperable.
Let's imagine a situation in which we want to conduct research in a 5-minute time frame. We will need to wait 15 minutes for the 3-period moving average to appear on the chart. It will take a few more minutes before any useful signals appear. That is, the system needs to be updated, and the purpose of this article is to discuss how to do this update.
You can see the system in action in the video below. It demonstrates how different indicators can be added to a replay system.
Author: Daniel Jose