Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us
Home/ Questions/Q 3344
Next
In Process
ronnetbox
ronnetbox

ronnetbox

  • 1 Question
  • 1 Answer
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
ronnetbox
Asked: December 26, 20202020-12-26T13:23:48+00:00 2020-12-26T13:23:48+00:00In: Forex Expert Advisors

a question for the programmers, the inverter prices.

  • 0

Good time to all. We need such a thing that will redraw the price chart from XXXUSD to USDXXX, ideally in a separate tab or indicator window.

  • 5 5 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    5 Answers

    • Voted
    • Oldest
    • Recent
    1. godzilla

      godzilla

      • 0 Questions
      • 6 Answers
      • 0 Best Answers
      • 32 Points
      View Profile
      godzilla
      2020-12-26T13:24:17+00:00Added an answer on December 26, 2020 at 1:24 pm

      ronnetbox:
      Good time to all. We need such a thing that will redraw the price chart from XXXUSD to USDXXX, ideally in a separate tab or indicator window.

      There is nothing easier!

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. komposter

      komposter

      • 1 Question
      • 36 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      komposter
      2020-12-26T13:24:12+00:00Added an answer on December 26, 2020 at 1:24 pm

      Unicornis:
      Make a Custom symbol in MT5 with the formula 1/(XXXUSD).

      This is not the same as what fxsaber suggested, as far as I understand.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. unicornis

      unicornis

      • 0 Questions
      • 4 Answers
      • 0 Best Answers
      • 28 Points
      View Profile
      unicornis
      2020-12-26T13:24:08+00:00Added an answer on December 26, 2020 at 1:24 pm

      Make a Custom symbol in MT5 with the formula 1/(XXXUSD).

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. ronnetbox

      ronnetbox

      • 1 Question
      • 1 Answer
      • 0 Best Answers
      • 20 Points
      View Profile
      ronnetbox
      2020-12-26T13:23:57+00:00Added an answer on December 26, 2020 at 1:23 pm

      thanks.. and how to turn it into a .mq4 file? I don’t understand programming)

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    5. fxsaber

      fxsaber

      • 1 Question
      • 54 Answers
      • 0 Best Answers
      • 134 Points
      View Profile
      fxsaber
      2020-12-26T13:23:53+00:00Added an answer on December 26, 2020 at 1:23 pm

      Forum on trading, automated trading systems and testing of trading strategies

      Libraries: Symbol

      fxsaber, 2018.12.06 14:12

      // Example of creating an inverted character

      #include //

      CUSTOMSYMBOL CustomSymb(StringSubstr(_Symbol, 3, 3) + StringSubstr(_Symbol, 0, 3) + StringSubstr(_Symbol, 6)); // You've created a symbol

      double ReversePrice( const double Price )
      {
        return(Price ? NormalizeDouble(1 / Price, _Digits) : 0);
      }

      void ReverseTick( MqlTick &Tick )
      {
        Tick.bid = ReversePrice(Tick.bid);
        Tick.ask = ReversePrice(Tick.ask);
        Tick.last = ReversePrice(Tick.last);
      }

      bool ReverseTicks( MqlTick &Ticks[] )
      {
        for (int i = ArraySize(Ticks) - 1; i >= 0; i--)
          ReverseTick(Ticks[i]);
          
        return(true);
      }

      bool GetTicks( MqlTick &Ticks[] )
      {
        return(CopyTicks(_Symbol, Ticks) > 0);
      }

      void OnInit()
      {
        MqlTick Ticks[];
        
        if (CustomSymb.IsCustom() && GetTicks(Ticks) && ReverseTicks(Ticks) &&
            (CustomSymb.AddTicks(Ticks) > 0) && (CustomSymb.DataToSymbol() > 0) && CustomSymb.On())
          ChartOpen(CustomSymb.Name, PERIOD_CURRENT); // Opened the chart
      }

      void OnTick()
      {  
        MqlTick Tick[1];
        
        if (CustomSymb.IsCustom() && SymbolInfoTick(_Symbol, Tick[0]) && ReverseTicks(Tick))
          CustomTicksAdd(CustomSymb.Name, Tick);
      }

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 504
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 673
    • Popular
    • Comments
    • Tags
    • forexcommunity

      Highlighting what’s important about questions & Answers on Discy Community!

      • 0 Comments
    • forexcommunity

      Introducing Keyboard Shortcuts, our first Labs feature

      • 0 Comments
    • forexcommunity

      Defining quality on Discy Engine — what a helpful answer ...

      • 0 Comments
    • forexcommunity

      Organizational and company accounts on Discy Engine the next step

      • 0 Comments
    • forexcommunity

      Hello world!

      • 0 Comments

    Related Questions

    • Brus Agell

      Правельный выбор

      • 0 Answers
    • pinupcasinoo

      Pin Up Casino

      • 0 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 2 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 0 Answers
    • c00l777

      Optimization results differ on different accounts

      • 3 Answers

    Users

    Brus Agell

    Brus Agell

    • 1 Question
    • 0 Answers
    pinupcasinoo

    pinupcasinoo

    • 1 Question
    • 0 Answers
    JamesSwics

    JamesSwics

    • 0 Questions
    • 0 Answers

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved