fxDreema

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

    TheLuke

    @TheLuke

    0
    Reputation
    39
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    TheLuke Unfollow Follow

    Latest posts made by TheLuke

    • RE: HOW TO EXPLICITLY CONTROL BAR OPENING TIME IN EA

      Thank you Radoslav. I've tried and it works correctly. Moreover now I get same result for both the testing models ("every tick" and "Open prices only")
      🙂

      posted in Questions & Answers
      T
      TheLuke
    • RE: HOW TO EXPLICITLY CONTROL BAR OPENING TIME IN EA

      Hi everyone,
      I have an EA that I am working on, it is being executed at every tick. I want the functions to be executed at the CLOSE of each bar (say if attached to a one hour chart) and not at every tick. I'd use this piece of code, but how to get something equivalent in fxDreema?
      Thanks in advance âš¡

      bool New_Bar=false;
      //+------------------------------------------------------------------+
      //| expert start function |
      //+------------------------------------------------------------------+
      int start()
      {
      //------------------------------------------------------------------+
      Fun_New_Bar();
      if (New_Bar == false)
      return;
      //------------------------------------------------------------------+
      {

      }
      }
      //+------------------------------------------------------------------+
      void Fun_New_Bar()
      {
      static datetime New_Time = 0;
      New_Bar = false;
      if (New_Time!= Time[0])
      {
      New_Time = Time[0];
      New_Bar = true;
      }
      }
      //-------------------------------------------------------------------+

      posted in Questions & Answers
      T
      TheLuke