Opening buy and sell limit orders at the quarter of the body of the ID1 candle helps
-
Hi everyone, I'm new to the forum.
I would like to open limit orders (buy and sell) at 25% of the ID 1 candle.
I'm starting to understand the mechanics of variables and constants, but not enough to do it on my own
Can anyone help me?
I translate with Google treslate.
Thank you -
If my understanding is right something like in the below link should work or give you enough idea.
-
@Valerio1979 What do you exactly mean by '25% of the ID1 candle? Do you mean 25% of its body size maybe? And if so, from the open or the close price?
-
@Xeta50
Perfect... I'll try to integrate it into my EA over the weekend and I'll give you feedback.
Thanks for the help
-
@l-andorrà
You're right, I didn't specify, I meant 25% of the body of the candle...
Buy limit 25% from the top of the candle's body and sell limit 25% from the bottom of the candle's body (regardless of whether the ID1 candle is bull or bear).
I hope I was clear.Thank you
-
@Valerio1979 Have a good weekend !
-
I'll show you what I mean: shared/sIV1V7zUc
It does not open any operations. -
-
I would simplify by making a buy, buy limit candle at 25% of the upper part of the body and a sell, sell limit candle at 25% of the lower part of the body.
Thanks for your patience -
Try this

-
it doesn't open any operations... all the logic you propose makes logical sense.
Why doesn't the system understand them??? 🤬 -
I think I should have used + not -, put these values into a comment to check if you are getting a relevant value, and then use a process of elimination to work out which block is causing the issue.
-
Forgive me but how do I post in a comment?
Thanks for your patience -
pass block - comment block showing the relevant value, write something in the label for it to work