fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    About TIME BOMB block ...

    Questions & Answers
    2
    3
    1881
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ClauTrade last edited by

      Hello,

      I'm testing a strategy based in volatility with signal from TIME BOMB block.

      I'm testing in real account with London broker.

      I'm using 2 VPS, one in NY and one in London. All is exactly the same: same MT4, same template and same setting. The only difference is in ping connection, 80 ms NY and 8 ms London. I'm setting 5 pair in each VPS.

      The problem is that NT VPS open various trades and London open a few trades. The performance is really different. 😮
      Looking the chart and the candle formation of the 2 VPS, the charts are exactly the same.

      I have try with a "test setting" (pips: 1 - time:1) and the performance is the same (open the same trades at same price) ...but with higher setting (pips: 8 - time:4) the performance is not the same, London opened only one trade in a week and a difference price. (NY opened 10 trades)

      Need to understand why... have you an idea and suggest about?

      Can you tell me how work the block? Use the time to take the price every "period" ...or get the price every tick and when detect the range price compare with time?

      Thanks. 🙂

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        I don't remember how all blocks work all the time, there are maybe over 100 blocks, not to mention how many functions 🙂 This is the code of "Time Bomb Up"

        static double levl_last=0;
        static datetime time_last=0;
        double levl_diff;
        datetime time_diff;
        bool reset=false;
        bool next=false;
        
        datetime    time_now = TimeCurrent();
        double levl_now = SymbolAsk(SYMBOL);
        
        if (levl_last>0) {
           levl_diff = toPips(levl_now-levl_last);
           time_diff = time_now-time_last;
           if (levl_diff >= PipsInTime && time_diff <= TimeToWait)
           {
              if (levl_now > levl_last /* raises up */) {next=true;}
              reset=true;
           }
           if (time_diff >= TimeToWait) {reset=true;}
        }
        else {reset=true;}
        
        if (reset==true) {
           levl_last = levl_now;
           time_last = time_now;
        }
        
        if (next==true) {~next~} else {~inext~}
        

        Even I need some time to refresh my memory for how this works. The idea was to detect if the price moved at least X pips for Y seconds. I think that the block measures the pips movement in periods of time. Like... for Y seconds it waits for the price to move with X seconds. Then again with the following Y seconds. I guess this is not the best method, but I don't think that this leads to such a big difference in brokers.

        1 Reply Last reply Reply Quote 0
        • C
          ClauTrade last edited by

          Yes, I think too!!

          With this method for more large Y time can be difference due random time step.

          The best method would be to get high and low price every tick for Y second and give alert if the difference high-low > X pips.

          Is strange.. something more occur in my London Broker ...I will try to fix it.

          Many thanks! 😉

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          H
          S
          J
          P
          B
          S
          H
          A

          19
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors