Hello, good day, and thank you,
I want to select a candle where the shadows are no more than one-fourth of the candle size, and the body is larger.
I wrote this condition using a variable, but it didn’t work correctly. Can someone write this code for me or guide me?
The issue is that after each candle, the variable didn’t reset to zero.
Latest posts made by ennoch
-
body sizeposted in Questions & Answers
-
RE: Checking recent candlesposted in Questions & Answers
I have limited familiarity, and I’ve tried to write this code a few times but couldn’t succeed. I thought of asking my question in the forum, hoping someone might help me.
-
RE: Checking recent candlesposted in Questions & Answers
You misunderstood me. I want to measure the size of recent candles. For example, if the size of candle ID six is the largest candle in the last 10 candles at 100 pips, then whenever a candle closes larger than 100 pips, it should open a position for me.
What you explained measures the market price, not the candle size.
If you see this picture, you will understand.

-
Checking recent candlesposted in Questions & Answers
Hello, I hope you're doing well.
I want to create a time range or candle period, for example, the last 10 candles, and check whenever a candle closes larger than all the previous 10 candles. If it’s bullish, it should open a Buy position, and if it’s bearish, it should open a Sell position.
Additionally, I need an input for the candle size, and the candle’s shadow (wick) should not exceed one-quarter of the total candle size.
My main issue is checking the previous candles. -
RE: purchase problemposted in Questions & Answers
@l-andorrà I just tested the buy position
I will write the code again, maybe it will be correct -
RE: purchase problemposted in Questions & Answers
It only draws one line, even if it draws multiple lines. After opening a position, the lines are deleted, and it should not open another position until a new line is drawn.
-
RE: purchase problemposted in Questions & Answers
I did this in the first message
https://fxdreema.com/shared/X8DayNi0b -
RE: تهیه اشتراکposted in Questions & Answers
صفحه اصلی سایت بالای صفحه
Purchase
کلیک کن هر اشتراکی میخواهی انتخاب کن با ارزدیجیتال یا پیپال پرداخت کن -
RE: purchase problemposted in Questions & Answers
If we want to explain it simply: whenever several bullish candles are formed (bulls in a row), place the line on candle ID 3, and then take a position after the cross — this works perfectly.
However, the conditions don't work properly, even though the lines are drawn correctly.