fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. tharindu999
    3. Posts
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 21
    • Posts 72
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by tharindu999

    • Why blocks are not working after we change their original titles ?.

      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.

      posted in Questions & Answers
      T
      tharindu999
    • RE: How fast is "OnTick" Event ?.

      Thanks bro..

      posted in Questions & Answers
      T
      tharindu999
    • How fast is "OnTick" Event ?.

      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.

      posted in Questions & Answers
      T
      tharindu999
    • RE: What is the difference between "Price Level" and "Price Fraction" ?.

      got it brother

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to remove the last digit if the "digit count > 5 "

      it working brother.. thanks for the support

      posted in Questions & Answers
      T
      tharindu999
    • What is the difference between "Price Level" and "Price Fraction" ?.

      I curios to know the difference between "Price Level" and "Price Fraction."

      2031a5fd-aa0c-4e6a-80d4-edbec3618538-image.png

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to remove the last digit if the "digit count > 5 "

      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)

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to remove the last digit if the "digit count > 5 "

      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.

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to remove the last digit if the "digit count > 5 "

      Price value bro.
      (High - Low ) / 2

      ex - (1.08713 - 1.08282) / 2

      = 0.002155

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to remove the last digit if the "digit count > 5 "

      brother, will this condition block check the price value in "PDif" has more than 5 digits compared to the original digit by broker?

      image.png

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to remove the last digit if the "digit count > 5 "

      I need to pick the variable that contains the 6 digits number and do the math, then update that variable to the correct value. Can you help bro, honestly, I don't know how to code custom MQL codes.

      posted in Questions & Answers
      T
      tharindu999
    • How to remove the last digit if the "digit count > 5 "

      Case -:

      High - 1.08713
      Low - 1.08282
      price distance (High - Low) = 0.00431

      Mid-Level Price = High - (Price Distance / 2 )

      The issue is when I dived the price distance by "2", sometimes the digit count is above 5 digits. The math works without no issues,

      But when place a trade using these prices are not working. because let's say the entry price is came as 1.089003
      then there is a issue.

      My EA didn't placed orders. I guess this digit issue is the case here.

      Question -:

      are there any code blocks to remove the last digit of a price level when it was saved into a variable ?.

      posted in Questions & Answers
      T
      tharindu999
    • RE: Why these Enumerations are not working.

      got it brother

      posted in Questions & Answers
      T
      tharindu999
    • Struggling with recognizing a price accumulation / range..

      I need to make sure the price didn't move within a specific time period.
      say if the time is 12:00 - 14:00. I want to make sure price didn't moved too much during that time period. otherwise, I want to make sure price has been ranged or not in a specific time.

      I've no idea which code block to use for this.

      posted in Questions & Answers
      T
      tharindu999
    • RE: hedging problem

      I looked several times to figure out what wrong here brother... I couldn't. Sell trades comes from the buy side logic. the issue must be there.

      posted in Questions & Answers
      T
      tharindu999
    • RE: Why these Enumerations are not working.

      Right Operand should be text shouldn't ?.

      posted in Questions & Answers
      T
      tharindu999
    • Why these Enumerations are not working.

      I created this enumeration and called it right way. but it does not return true in the condition blocks, why is that ?.

      89c657f6-f163-4fd3-94a9-324da359d8d6-image.png
      .
      .
      4f045519-2450-4371-9ca8-5b22f9b9be59-image.png

      posted in Questions & Answers
      T
      tharindu999
    • will this code blocks work ?.

      I want to create two horizontal lines when there is no trade runing a the moment.
      I connected these blocks this way. but it not draw a horizontal line.

      what is the wrong here ?

      https://fxdreema.com/shared/CehExUjyb

      posted in Questions & Answers
      T
      tharindu999
    • RE: What is the correct data type for Time & Date values ?.

      got it bro

      posted in Questions & Answers
      T
      tharindu999
    • RE: How to get reputation points ?.

      got it brother...

      posted in Questions & Answers
      T
      tharindu999
    • 1
    • 2
    • 3
    • 4
    • 1 / 4