Can anyone help me with a candle breakout EA?
-
I'm starting out and I'm looking for help to create a logic that analyzes the candle of a certain asset at a certain time and buys if the next candle breaks upwards and sells if the next candle breaks downwards.
Example at the opening of the London session a certain asset opens and the next candle breaks, where it breaks is the direction of the operation, if anyone can help...
-
@fernandoanton-90 Hola, yo estoy intentando hacer lo mismo, si logro hacer este ea te lo compartire con mucho gusto
-
@fernandoanton-90 Ok. I can help. Can you please list the set of conditions required to find that candle?
-
Ok my brothers, as far as I understand what you explain in this post, this is called "breakup strategy" and you can do it during the opening hours of London, Asia or NY, depending on your choice it is London.
If I'm wrong please correct me...I think that EA should start like this:
-
Identify the times of London, Asia and NY visibly on the graph
-
Draw a vertical line that marks the opening and closing of each Session with names visible on the graph
-
Identify and mark with horizontal lines the maximums and minimums of the closing of each previous session (Use different colors, use visible titles to differentiate the last maximums and minimums of each session)
-
Identify and draw a dotted line at the midpoint between the last maximum and the last minimum of the previous session
-
Apply the strategy for the entries of each operation according to the tutorial video that I share below from a YouTube channel...
https://www.youtube.com/watch?v=X6fZu9ZbGdE -
Add TP, SL, plus the option to activate or deactivate management using breakeven, trailing stop, martingale with the bool tool (True / False)
-
-
@l-andorrà Precisamente el video que comparto de la estrategia de rupturas es de tu canal mi buen amigo... Gracias por hacer tan buen contenido.
-
@l-andorrà
One needs to identify the opening of a session, being able to choose which session to act in;Two mark the high and low opening candle;
Third, when the price breaks and closes upwards, buy, if it breaks downwards, sell, placing take and stop;
Four must have a martingale option;
Five, if possible, traling stop;
-
@l-andorrà Hello my brother, I am very intrigued to know the answers to this post, do you dare to try to improve your ea of the video link using these parameters expressed in this post and share that project?
-
@fernandoanton-90 How is the EA supposed to know which session to act in just by identifying its opening? Everything else is easy to do.
-
@l-andorrà Eso se puede resolver Con switches (bool (true/false) para activar o desactivar la sesion (Londres, Asia, NY) con la que se va a operar, de la misma forma se puede activar o desactivar operar usando Buy o SELL, el uso de martingala, breakeven, trailing stop, SL y TP simple, limite de operaciones diarias, cierre con Tp Money, Cierre con Tp pips, limite de perdidas diarias, etc:
yo estaba intentando hacer algo parecido en este proyecto incompleto que les comparto aqui....
-
@l-andorrà I don't know how it could identify the opening of the market, perhaps based on the time, for example, if I want to operate the opening in London, I will have to enter the opening time, I think that would be possible, right?
have a function to operate from a certain time, and then it only performs one operation, with those conditions described
-
@l-andorrà That's it, the idea is to identify the opening time and take reference from the first candle at that time, then it breaks upwards to buy and downwards to sell, this operation is finished, it will only do another one on the other day at the same selected time.
-
@fernandoanton-90 Ok. What about this?
- You choose a specific time for the bot to find the high and low up to that moment in the trading session. For example 09:00 London time.
- The bot finds both daily high and low from 00:00 to 09:00.
- As soon a price is above/below any of these, a buy/sell is open.
Would it work?
-
@l-andorrà Excelente!
-
@l-andorrà So, the idea is that the minimum and maximum for reference are that of the first candle of the session that is chosen
-
@l-andorrà I'm using the translator, if anything isn't clear I apologize...
but we can always understand -
@fernandoanton-90 Not necessarily the first candle, but all candles from 00:00 to 09:00, regardless of the timeframe.
-
@l-andorrà Amigo, puedes comaprtir ese proyecto por favor para seguirle el avance en un hilo?
-
@l-andorrà What would this code look like? can you share?
what I needed was to identify the highs and lows of the opening candle of a session
-
It seems to me to be similar to this, I'm not really sure because I use Google translator
https://fxdreema.com/forum/topic/4463/previous-candle-high-low?_=1709073480236
-
Otro hilo similar:
https://fxdreema.com/forum/topic/6807/candle-berakout-ea?_=1709073480250