New Spin! Video Tutorial - Signals Dashboard EA [advanced] - looping Objects, arrays
-
Re: Video Tutorial - Signals Dashboard EA [advanced] - looping Objects
@miro1360, I find this to be an excellent project and tutorial. I have created a new spin to this older tutorial and am having a bit of difficulty (as I am not a programmer by trade). I have been able to make some strides, using the existing code you have provided.
Instead of a Multi Pair dash board, I am looking to create a Multi Time dash board for a single pair. I have found that I need a 3 arrays to create the task but I am having difficulty making the EA loop properly to give the results.
I have attached my modification and constant/variable changes. Your insight would be grateful to complete the task. Here is what I have so far.
Shared EA >>> https://fxdreema.com/shared/duB0geW7b
Results: (notice it only draws 3 MA - Stops at M15)

Constants:

Variables:

On-Init:

On-Timer:

The result of this dash board is to provide a Multi-Time View of a pair.
Can you assist me with this?
Best,
Thomas -
perhaps a few errors, from what I saw fast, these:
wrong:

right:

wrong:

right:

wrong:

right:

...
maybe there is something more, I have not tested, you must try
-
@miro1360 - Looks good now. I updated the timeFrame in seconds per period. As the system loops, it stops at 30 minutes. I looked and the time calculates Candle 0 - Candle 0 to get the pip size but stops at H1. Any ideas?
Current EA >>> https://fxdreema.com/shared/czlTvUN9c
Here are the results:

Again. Thanks for your assistance.
Tom -
@miro1360 - On second thought... I am wondering how to express timeFrame - in this application I have been using seconds. Is this the correct way or do I need to use another variable?

Thanks again,
Thomas -
Found it: Time Frames
https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes
Type: ENUM_TIMEFRAMES
Sample: PERIOD_M1 - one Minute
Again. Thanks for your assistance.
Thomas -
@miro1360 - Thanks Miro!

This task has been completed. If anybody wants to use this EA it is here:
https://fxdreema.com/shared/ZDWXV1bsb
Constants:

Variables:

Good Trading All!
Tom -
@miro1360 It could exemplify how to interrupt the calculation of a given pair in the matrix using a button in the first example you created. The idea is to inhibit certain pairs temporarily in the same matrix without and leave the others calculating normally.