How to copy price from current mouse location - MetaTrader 5

 

Hi,

Do you know how I can copy copy the price from the current location with the mouse? I know you can  do it in TradingView with the right click but I haven't found a way to do it in MetaTrader 5.

Many thanks!

 
  1. Aindriu Mac Giolla Eoin: Do you know how I can copy copy the price from the current location with the mouse? I

    Yes, I do.
              Only ask questions with yes/no answers if you want “yes” or “no” as the answer.

  2. Perhaps you should read the manual.
       How To Ask Questions The Smart Way. (2004)
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

  3. double         mousePrice;                // Price under mouse.
    int OnInit(){
       ChartSetInteger(0, CHART_EVENT_MOUSE_MOVE, 1);       // mousePrice
       ⋮
    }
    void OnChartEvent(const int id,
                      const long &lparam,
                      const double &dparam,
                      const string &sparam){
       if(      id == CHARTEVENT_MOUSE_MOVE){
                datetime dt;   int sub;
             ChartXYToTimePrice(0, (int)lparam, (int)dparam, sub, dt, mousePrice);
      }
      ⋮
    }

 
Thanks very much for your help William, I can put it together now :)
 
William Roeder #:
  1. Yes, I do.
              Only ask questions with yes/no answers if you want “yes” or “no” as the answer.

  2. Perhaps you should read the manual.
       How To Ask Questions The Smart Way. (2004)
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.


how i can add this in mt5 ?
 
78404103 #:
how i can add this in mt5 ?

you need to know minimums of codding.