How can I set NY time as default in my EA?
-
Hello friends, I want to set NY time as the default time in my EA, can you help me solve this please?
-
What do you exactly mean by 'default time'? Do you mean beginning to work at the open of the NY session maybe? You can simply use a time filter block, for example.
-
Hello friend, thank you for answering... I will try to explain it by putting it in context:
In this project I try to apply the Russell 2000 strategy in US2000_M15_NY Time, for which I must identify and draw a dotted vertical line right on the candle that is created between 9:40 and 9:55 NY time, I must measure the size of this candle including the High and the Low, establishing them as support and resistance with horizontal lines of green and red to differentiate them, and then in the next candle I must operate according to the direction where the market breaks those supports or resistances based on the HI and LO created in said 9:40 - 9:55 NY time candle, for this reason I must set the correct time using NY time in my ea, however I have tried it and it does not work correctly when I do it I open in the different vps and different brokers that I use, everything changes and it does not work correctly, I hope you can help me with this problem. -
This is the link to my project, I still can't draw the vertical line right on the 9:40 NY time candle....
https://fxdreema.com/shared/gocYdyide -
Broker (chart) times affect the offset, and so does DST (although the broker will adjust theirs), so there is the fact that nothing changes backtest times. So predominantly, if things change manually adjust, and only backtest in the current broker offset time.
-
Thanks friend, ok then I will use the runner's time as a base adjusting it to coincide with the candle that is created at 9:40 and 9:55 according to NY time...
Can you help me draw the dotted vertical line right on this candle please?
-
Drawing the line is easy, just use a draw line block, set it to the style you want, and then your adjusted time value
-
@jstap Creating a 5 meter fiberglass sculpture with a metal structure is very easy for me, I just have to make a sketch, create a clay model, then create a clay sculpture to model the mold, weld the structure, assemble the metal mesh , and then shape the layers, give final finishes using a grinder, drill, electric sander, etc... And assemble everything.
But for me, creating an EA is another universe, I feel really overwhelmed by everything I learn or can see what is done in this topic, there are things that are less complex for you to understand or are very easy for you since Their native language is English, they can understand the concepts and terms used in this environment, they have been practicing in this world for more years, and they have managed to make their mind work well with this logic. I have only known trading for a little over 5 months. , I bot them in fxdreema, trying to understand their language and concepts with translators, and I am very grateful for the time and patience that you, the most experts, dedicate to this forum to help new ones, or more clumsy ones like me, but in my case draw a line or making the time coincide is a titanic task and I ask for help because I have already tried it and it has not worked well for me, thank you for your answers friends, you are very inspiring to learn, I am sorry for sometimes being a bother with my questions that perhaps seem very obvious for an expert but for me they are a puzzle and when someone really helps me with solutions in this forum I feel like I learn and advance in giant steps.... Thank you very much
-
There are things that I understand, but it has taken years of self-teaching. I have PPMS, and am a fully qualified race car technician, I have the knowledge but I no longer have the necessary fine motor skills. I will gladly help people, but practice is the only way I see to fully learn, all I ask for is people do things themselves (like you) to try and learn. From this, I can help without having to create everything for people, and this can cost me time, but doesn't help others.
-
@jstap Thank you my brother, you are very kind for your help, I have learned many things about roar, Andorra and from you, although according to what you say I still have light years to learn... hahaha I will try the line again on my own, let's see. if not the pc explodes haha
-
When you try if it hasn't worked just ask why
-
@jstap
I was already able to draw the dotted line on the candle but it is not correct, the EA must identify the 15 minute candle that is formed between 9:40 and 9:55 NY time, at that moment draw the dotted vertical line, then draw a horizontal line on the HI and another horizontal line on the LO to use them as support and resistance and enter from the next breakout in buy or sell with a ratio of 3 to 1, but I can't understand what I'm doing wrong -
15 minute candles form every 15 minutes so 00:00 00:15 00:30 etc, so to check 00:00 you would need to check at 00:15, this is why you need to use time, converter to match broker time
-
Sigo perdido hermano jajaja lo siento soy una toronja para comprender esto.
-
1st you need to ascertain the time you want to use, right now it is GMT+5, but in the winter it would be +4.
This should give you the current time in NY, save it into a variable (using text code input)
TimeToString(TimeGMT()+18000,TIME_MINUTES )
the same principle can be used to convert from most times, but you need to know the difference.
Something like this should do it, but you will have to decide the seconds. I haven't tested
TimeToString(StringToTime("15:30") + 18000, TIME_MINUTES); -
Ok gracias estoy intentandolo en este momento
-
I added the " "
-
@DragonZueloTrends hola amigo, como estás? has conseguido dibujar la línea?
-
Si en este proyecto ya logre dibujar la linea vertical y las horizontales a demas de capturar la medida de la vela para colocar los soportes y resistencias, ahora mi lio esta en que no opera correctamente pero estoy analizandolo