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 3419
Next
In Process
algotrade
algotrade

algotrade

  • 1 Question
  • 2 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
algotrade
Asked: December 26, 20202020-12-26T13:33:20+00:00 2020-12-26T13:33:20+00:00In: Forex Expert Advisors

Help me write an indicator, I will share the finished code. The indicator is based on physics and mathematics.

  • 0

You need to make an indicator that is displayed as SMA (average) on the quote chart.
The main code of the indicator will be in a C++DLL
Please help me with a sample of the short code of the indicator in MQL5 and passing it to the DLL close as a double.
The main DLL code is presented in the article on this site, you need to finish it so that an array appears in it, then it is passed back to the indicator and then displayed on the chart.

No more than 5 participants. When the indicator is ready, I will send a copy to those who helped.

?

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

    5 Answers

    • Voted
    • Oldest
    • Recent
    1. algotrade

      algotrade

      • 1 Question
      • 2 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      algotrade
      2020-12-26T13:33:46+00:00Added an answer on December 26, 2020 at 1:33 pm

      Artyom Trishkin:

      You have the same array to display this:

      and write the data to array[]

      //---
      int ArSize;
      ArSize = ArraySize(price);
      for(int i=0;i<ArraySize(price);i++) NormalisedpriceBuffer[i]=price[i];
          
      //--- return value of prev_calculated for next call
        
        
      PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,NormalisedpriceBuffer[]);

        }
      //+------------------------------------------------------------------+

      This error appears (where square brackets are italicized)

      ']' - expression expected       Quantum1.mq5    47      62

      Thank you.p. s. 10 minutes ago it was compiled a little with other changes, now it is not compiled yet… I can’t figure out how to display the buffer (NormalisedpriceBuffer[]), this is an array, the loop must be done to display pointwise ?

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

      laryx

      • 0 Questions
      • 43 Answers
      • 0 Best Answers
      • 106 Points
      View Profile
      laryx
      2020-12-26T13:33:42+00:00Added an answer on December 26, 2020 at 1:33 pm

      Artyom Trishkin:

      You have the same array to display this:

      and write the data to array[]

      There is also an error in the code-array is not an array of values, but a single value.  And it is assigned to it as to an array…

      Does it compile without errors ?

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

      artmedia70

      • 1 Question
      • 41 Answers
      • 0 Best Answers
      • 102 Points
      View Profile
      artmedia70
      2020-12-26T13:33:37+00:00Added an answer on December 26, 2020 at 1:33 pm

      Algotrade:

      Tell me if you know why the indicator is not being drawn ? I want to load close into an array, then display this array…. The code is compiled without errors, but it is not drawn on the graph. “It is reasonable…” 🙂

      You have the same array to display this:

      NormalisedpriceBuffer[]

      and write the data to array[]

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

      algotrade

      • 1 Question
      • 2 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      algotrade
      2020-12-26T13:33:28+00:00Added an answer on December 26, 2020 at 1:33 pm

      George Merts:
      I wonder what is there for such terrible bells and whistles that you need a DLL. What is not present in MQL ?

      There are no physical and mathematical functions, but the MetaTrader, in my opinion, is the best terminal that allows you to connect a DLL and not be limited in functionality, for example, when using the GPU for calculations, … etc. And in the MetaTrader, a ready-made “non-pirated” testet…

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

      laryx

      • 0 Questions
      • 43 Answers
      • 0 Best Answers
      • 106 Points
      View Profile
      laryx
      2020-12-26T13:33:24+00:00Added an answer on December 26, 2020 at 1:33 pm

      I wonder what is there for such terrible bells and whistles that you need a DLL. What is not present in MQL ?

      • 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