Apply action on the first market tick.
-
Hello friends I'm having a problem.
I operate an asset that does not respect the opening hours that the brokerage informs.
For example:
The asset Bra50 of the broker Active Trades starts at 13:00 and ends at 22:25 (this is the broker's information), see below:

But for some reason sometimes there is a delay at the beginning and this delay is adjusted to the end of the day.
For example: The market for this asset should open at 1:00 pm and open without prior notice at 1:02 pm, or sometimes at 1:05 pm, 1:12 pm, anyway, you cannot trust the time informed by the broker.
If the market for this asset starts at 13:02 then instead of stopping at 22:25 it will stop at 22:27.This gets in the way of some rules I have, as they depend on the exact moment the asset starts to work, so if I put the broker's time too many times, my EA will not apply because the EA will respect that time that I predetermined and the broker did not respect, she was late to start the market for that asset.
I would like to apply the solution of identifying what time (actually) the market opened.
Can anyone give me an example of how to do this? -
question. is the EA that u have built with Fxdreema? and how it this interefering with you rules? here is how you can be alerted when first tick comes in. but it may be different if you need to connect this with other rulles and conditions. https://fxdreema.com/shared/jWqzEo2G
-
@ontradingx You can use a 'once per day' block as the first one to be executed every day. Then connect a variable to it than can be used later to turn on the rest of the EA.
-
@Youngtreptrader
Thanks for your help friend.
Yes, all my EA's are made through Fxdreema, I'm not a programmer.
Regarding my need to have this mechanism, it was due to the fact that the market I operate at Active Trades does not faithfully respect the start time. The broker informs that the currency starts at 13:00 but I've seen delays for it to start up to 10 minutes, if I configure it to execute rules at 13:01 the EA will not be able to execute because the broker started the asset at 1:10 pm.
As @l-andorrà informed and that's what I currently have, this solution given by him is not and will not work, because in the once per day block he requests that an exact time be defined to execute the block. Unless I have to leave the block without any definition for this to happen, I'll test it. -
@l-andorrà and @Youngtreptrader
Passing by to let you know that the explanation you provided here worked very well.What I did was "don't set a time" in the "once per day" block, done that the EA started executing all blocks below it on the first tick to the market and not executing anything else until a new tick of the next day happens .
Many thanks to you 2. -
i see. can u share a link to the project?
-
@ontradingx oh i just seen latest update. yes thats exactly what is expected. great
-
@ontradingx You're welcome.