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

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

alexeyvik

Ask alexeyvik
0Followers
1Question
Home/ alexeyvik/Answers
  • About
  • Questions
  • Polls
  • Answers
  • Best Answers
  • Followed Questions
  • Favorite Questions
  • Groups
  1. Asked: January 27, 2021In: Forex Expert Advisors

    Getting data by the indicator from another indicator on a larger time frame

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on January 27, 2021 at 7:24 am

    savinkins: I thought that the problem is known, so they will tell you. But thanks for the advice. Here is the file.The problem is not only well-known, but also well-known Forum on trading, automated trading systems and testing of trading strategies The requested data was not found. Alexey Viktorov,Read more

    savinkins:
    I thought that the problem is known, so they will tell you. But thanks for the advice. Here is the file.

    The problem is not only well-known, but also well-known

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

    The requested data was not found.

    Alexey Viktorov, 2017.07.08 10:39

    The question was raised back in September 2016, but nothing was fixed or I could not find a solution to the problem?

    For some reason, this problem does not occur in the Expert Advisor, and in the indicator it is not possible to request the data of the period indicator that does not correspond to the current one. And the answer to this post also could not be found for a reason… I’d rather not say anything.

    Please help me. Maybe someone knows where there is an answer, or they will answer more specifically

    Task: to get the values of the fractals of the period H1 when the indicator is launched on the period M5.

    int hadle;
    double arr[];
    /**************Custom indicator initialization function**************/
    int OnInit()
    {
       hadle = iFractals(_Symbol, PERIOD_H1);
       int size = CopyBuffer(hadle, 0, 0, 1000, arr);
       if(size < 0)
        {
         Print("CopyBuffer error", GetLastError());
        }
       return(INIT_SUCCEEDED);
    }/*******************************************************************/

    And it absolutely does not matter where to place CopyBuffer () in OnInit () or in OnCalculate()

    I even tried opening a new chart window with the specified period H1

    long idChart = ChartOpen(_Symbol, PERIOD_H1);

    add an indicator to it, or apply a template with an indicator to update this chart

       ChartIndicatorAdd(idChart, 0, hadle);
       ChartRedraw(idChart);
    nothing helps, the result is

    ERR_INDICATOR_DATA_NOT_FOUND

    4806

    The requested data was not found

    there are also links to other topics.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: January 27, 2021In: Forex Expert Advisors

    MarketInfo translation, purchase price, sale price, bar opening time on mql5

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on January 27, 2021 at 7:22 am

    investr777: Good afternoon. Tell me how to translate: There are also such functions in mql4 as Bid, Ask, and Time.And this is it: Please help me!All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.The opening time ofRead more

    investr777:

    Good afternoon. Tell me how to translate:

    There are also such functions in mql4 as Bid, Ask, and Time.

    And this is it:

    Please help me!

    All information in the documentation Obtaining market information. Functions such as SymbolInfoInteger() SymbolInfoDouble () and others.

    The opening time of the bar and other parameters can be found in the sectionAccess to timeseries and indicators

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: January 27, 2021In: Forex Expert Advisors

    Only long and only short parameters

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on January 27, 2021 at 7:12 am

    Alena Lysenkova: Oh, Russell's teapot, another one.The person raised the topic, probably he needs an answer. The topic can be Googled by others who will need an answer. The last thing they want is to see your toxic attacks there instead of a response.Is it not fate to think of it yourself? Oh, my deRead more

    Alena Lysenkova:

    Oh, Russell’s teapot, another one.
    The person raised the topic, probably he needs an answer. The topic can be Googled by others who will need an answer.
    The last thing they want is to see your toxic attacks there instead of a response.
    Is it not fate to think of it yourself?

    Oh, my dear, the person raised the topic far from getting an answer, but in order to show off his dull mind and offend someone a little. Read what is written before making conclusions. And I do not recommend EVERYONE to use an enemy search engine, despite its successful expression in the Russian language. Good luck finding the answers, but through good search engines.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: January 27, 2021In: Forex Expert Advisors

    Only long and only short parameters

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on January 27, 2021 at 7:12 am

    hvn000: And you're probably the smartest. Imagine, in three and a half years, I've become even smarter. Unlike necroposters.

    hvn000:
    And you’re probably the smartest.

    Imagine, in three and a half years, I’ve become even smarter. Unlike necroposters.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: December 29, 2020In: Forex Expert Advisors

    Input parameters (which are set by the user)

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on December 29, 2020 at 10:14 am

    Stanislav Korotky: sinputThis prevents optimization of the parameter, and nothing more.

    Stanislav Korotky:

    sinput

    This prevents optimization of the parameter, and nothing more.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: December 29, 2020In: Forex Expert Advisors

    Indicator values in date/time?

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on December 29, 2020 at 10:09 am

    gedd: Tell me in what direction at least to think. I need the values of the indicators at specific points in the date/time, more precisely with a pre-defined interval.In MQL5, working with timeseries is organized in the form of arrays. But... for example, within one minute there can be 2 ticks and 2Read more

    gedd:

    Tell me in what direction at least to think. I need the values of the indicators at specific points in the date/time, more precisely with a pre-defined interval.

    In MQL5, working with timeseries is organized in the form of arrays. But… for example, within one minute there can be 2 ticks and 2000 ticks. I am more interested in the value of indicators at the time of opening or closing the bar,

    but even more precisely, just with a pre-set constant interval. That is, it is necessary to somehow convert the current date/time to an array index, probably? 

    In general, how to get the indicator value depending on a specific time?

    Those who think clearly express themselves clearly, but this is beyond my power to understand. Maybe it is necessary?

    int  CopyBuffer(
       int indicator_handle, / / indicator handle
    int buffer_num, / / indicator buffer number
    datetime start_time, / / from what date
    datetime stop_time, / / to what date
    double buffer [] / / array where data will be copied
       );

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: December 29, 2020In: Forex Expert Advisors

    Help with a simple script

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on December 29, 2020 at 10:08 am

    creepystaisy97: Good afternoon, I want to run the script in 2 steps:1. The script opens two pending orders buystop and sellstop;2. as soon as the price touches one of the orders,the "opposite" one is removed(for example, a buystop is opened,a sellstop is removed);If I had no problems with the firstRead more

    creepystaisy97:

    Good afternoon, I want to run the script in 2 steps:

    1. The script opens two pending orders buystop and sellstop;

    2. as soon as the price touches one of the orders,the “opposite” one is removed(for example, a buystop is opened,a sellstop is removed);

    If I had no problems with the first step,then with the second….

    Please tell me how to implement step 2 correctly.I heard that you can do this through the standard cycle of iterating orders (for (int i=orderstotal()-1; i>=0; i–) until> some does not fit the magic number,but how to implement this I do not understand.

    I will be glad of any help and any advice.Thank you in advance.

    Doing this in a script is absolutely wrong. In this case, you will have to loop the script, which is not welcome. But if you do this in the Expert Advisor, the algorithm is quite simple:

    1. When opening orders, their tickets are stored in different variables or in an array.
    2. At each tick, orders are selected in turn and the order type is checked.
    3. If OP_BUY or OP_SELL means the second one is deleted and expertremove () is either waiting for the next command…
    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: December 29, 2020In: Forex Expert Advisors

    Admit it, who has a normal copier for MT5 + netting accounts?

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on December 29, 2020 at 10:05 am

    Aleksandr Volotko: Actually a subject. We are looking for a normal copy machine for MT5, which works normally on netting accounts, do not send it to the Market - there are no such things, this is a fact. Either there are flaws in the logic, or it doesn't work, or both options are available at the saRead more

    Aleksandr Volotko:

    Actually a subject.

    We are looking for a normal copy machine for MT5, which works normally on netting accounts, do not send it to the Market – there are no such things, this is a fact. Either there are flaws in the logic, or it doesn’t work, or both options are available at the same time.

    Surely someone already has one written for a loved one, working correctly, with sane copying logic, without unnecessary rattles, reliable as a Kalashnikov assault rifle. 

    But there are two kinds of logic, one is mine and the other is wrong.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: December 29, 2020In: Forex Expert Advisors

    working on a VPS. Is it possible to write and then see the log?

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on December 29, 2020 at 10:03 am

    Alexander Kharlamov: ftp forwarding is probably a very good idea... you can't drop a sample code?! or a link to the likeness?! thank you!So there is an example in the documentation...

    Alexander Kharlamov:

    ftp forwarding is probably a very good idea… you can’t drop a sample code?! or a link to the likeness?! thank you!

    So there is an example in the documentation…

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: December 29, 2020In: Forex Expert Advisors

    Multiple inputs of one Expert Advisor for 1 instrument

    alexeyvik

    alexeyvik

    • 1 Question
    • 78 Answers
    • 0 Best Answers
    • 180 Points
    View Profile
    alexeyvik
    Added an answer on December 29, 2020 at 9:59 am

    Fresto: I shouldn't have deleted the topic. Still can't handle it. There are 2 parabolic indicators, for each you need to go both long and short, as a result of 4 calls. To correctly implement this, you need MagicNumber. I found an article on mql4, but there is a bit of divergent syntax already. CanRead more

    Fresto:

    I shouldn’t have deleted the topic. Still can’t handle it. There are 2 parabolic indicators, for each you need to go both long and short, as a result of 4 calls. To correctly implement this, you need MagicNumber. I found an article on mql4, but there is a bit of divergent syntax already. Can you please give a simple example of this implementation?

    As I see it:
    1. 4 entry conditions, each indicator has its own magic.
    2. 4 exit conditions, if the condition worked-close the position with such and such magic.

    As I understand it, there is no magic-related function in the ready-made Trade library. Thus, it is necessary to go out precisely to find your position among the open ones with magic.
    Thank you in advance.

    Bad search. However, I think that two magicians will be enough. 4 conditions, this is 2 buy and 2 sell total 1 magic on one buy and sell and 1 on the second buy and sell.

    See less
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 2 3 … 8

Sidebar

Ask A Question

Stats

  • Questions 530
  • Answers 2k
  • Posts 5
  • Comments 0
  • Best Answers 0
  • Users 748
  • 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

Users

LouisJah

LouisJah

  • 0 Questions
  • 0 Answers
JoshuaCrymn

JoshuaCrymn

  • 0 Questions
  • 0 Answers
ElmerEcoth

ElmerEcoth

  • 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