fxDreema

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

    TicksData function

    Bug Reports
    2
    2
    780
    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.
    • H
      hilavoku last edited by

      You have a function TicksData().

      I think there is a bug in it.

      if (shift<=0) {
               if (type==MODE_ASK) {
                  return(MarketInfo(symbol, MODE_ASK));
               }
               else if (type==MODE_BID) {
                  return(MarketInfo(symbol, MODE_BID)); 
               }
               else {
                  double mid=((MarketInfo(symbol, MODE_ASK)-MarketInfo(symbol, MODE_BID))/2);
                  return(mid);
               }
      

      I think when you wan't to return the mid value it should be

      double mid=((MarketInfo(symbol, MODE_ASK)**+**MarketInfo(symbol, MODE_BID))/2);
      

      see you
      hila

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

        I will fix it, thank you 🙂

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

        Online Users

        F
        S
        L
        J

        14
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors