Thanks a lot brother... now I know how to create and use enumeration because of you... thanks a lot...
Best posts made by tharindu999
-
RE: How to set dropdowns for inputsposted in Questions & Answers
Latest posts made by tharindu999
-
Why blocks are not working after we change their original titles ?.posted in Questions & Answers
normally, I always change my blocks name so I can easily identify them. the names are also very short btw. but today I coded a new EA with just 10 code blocks, very light weight. but when I change their names (titles) blocks stops working.
it only works if their titles as same as original.
as a example, let's say the block is "condition" (condition block), if I change name for something like "MA20 > MA50", it stops working / passing.
Only works if the title was same as "Condition" (condition block)
Why it that?. my other projects work without an issue. I checked all the possibilities for this case, only thing I found is this title change issue.
-
How fast is "OnTick" Event ?.posted in Questions & Answers
I have a curious question...
The OnTick event triggers each time it receives a new tick.
Let's say we have a set of blocks to execute on OnTick. What would happen if OnTick received multiple ticks within a second?
For example, indices like NAS100 and US30 are so volatile sometimes; the price moves at lightning speed, resulting in multiple ticks within a second.
Let's assume our EA was executing code, and if half of the code has executed while the other half remains to be executed, what happens if a new tick is received before the other half is executed?
There are two possible answers:
1. The EA abandons the execution of the other half and starts execution from the beginning (top).
2. The EA omits the new ticks until the current execution process has ended.
I don't know which is the correct answer.
I'm curious because if the answer "1" is correct, I should move my main code blocks to the OnTimer event and adjust the time interval to 10 seconds.
-
RE: How to remove the last digit if the "digit count > 5 "posted in Questions & Answers
it working brother.. thanks for the support
-
What is the difference between "Price Level" and "Price Fraction" ?.posted in Questions & Answers
I curios to know the difference between "Price Level" and "Price Fraction."

-
RE: How to remove the last digit if the "digit count > 5 "posted in Questions & Answers
In this case, Sometimes the middle value has 6 decimal places, let's say I want to place buy pending order on EURUSD, stop loss has 6 decimal places, which will never place the pending order. (as I think)
-
RE: How to remove the last digit if the "digit count > 5 "posted in Questions & Answers
No bro, I need to calculate the "middle value", so then I can "subtract" the middle value from the "Low" to determine the "Stop loss" for the buy pending order I'm about to set at Low.
-
RE: How to remove the last digit if the "digit count > 5 "posted in Questions & Answers
Price value bro.
(High - Low ) / 2ex - (1.08713 - 1.08282) / 2
= 0.002155
-
RE: How to remove the last digit if the "digit count > 5 "posted in Questions & Answers
brother, will this condition block check the price value in "PDif" has more than 5 digits compared to the original digit by broker?
