MQL4 -gt R-Project - Interface Library - Page 16
Page 16 of 6118 FirstFirst ... 61415161718 LastLast
Results 151 to 160 of 175

Thread: MQL4 -gt R-Project - Interface Library

  1. #151
    Quote Originally Posted by ;
    bistreevseh, Switch the slashes in your path from \ to / as R anticipates the latter. I've used 64 bit R with mt4r.dll without difficulties. The actual calls to Rterm.exe are programmatically made through the command prompt so that it shouldn't matter if you choose 32 or 64 bit R because the OS does the heavy ling. It will not matter that mt4r.dll is 32 bit because of MT4 becoming 32 bit.
    Bistreevseh,

    FXEZ is almost completely right about the slashes. Silly me.

    A single \ simply escapes the following character in MQL4.

    But but but then again. . .ye olde R-Sample from Master 7bit has....

    Inserted Code // set this so it points into a R installation. Do NOT remove the --no-save extern series RPATH=C:\Apps\R\R-3.1.1\bin\i386\Rterm.exe --vanilla --no-save; #define RDEBUG 1
    And if I operate that olde sample then it looks like that (DBGVIEW.EXE in foreground):



    Therefore there must be a third cause of the error. Mind taking a look into DBGVIEW?

    Edit: Win7 i386, newest patches.

  2. #152
    Thank you very mutch! It is true.

  3. #153
    Dear friends!
    There's a new problem. In the debugger not very fantastic to observe the processes which keep coming back because two mistakes:
    Inserted Code #91;4836#93; exception 40010007 at 7651C41F in C:\Windows\syswow64\KERNELBASE.dll EXCEPTION_CONTINUE_SEARCH #91;4836#93; exception 80000003 at 017F224E in C:\Program Files (x86)\Alpari Limited MT4\terminal.exe EXCEPTION_CONTINUE_SEARCH I'm use auto.arima() for calculates. This function is executed not properly some times. Please allow me to. I have mistakes even launch terminal. Tester egies are used by me maybe it is the cauce of mistakes.
    My R :
    Inserted Code int OnInit() //-- R=RInit_(C:/Program Files/R/R-3.1.1/bin/x64/Rterm.exe --no-save,1); RExecute(R,library(forecast)); //-- return(INIT_SUCCEEDED); // ------------------------------------------------------------------ //| Expert deinitialization function | // ------------------------------------------------------------------ void OnDeinit(const int reason) //-- RDeinit(R); /------------------------------------ int R_calculates(double arr#91;#93;-RRB- int res=0; RAssignVector(R,goal,arr,ArraySize(arr)); RExecute(R,errorlt;-0); RExecute(R,trainlt;-ts(target)); RExecute(R,trainlt;-rev(train)); RExecute(R,arimalt;-auto.arima(train)); RExecute(R,forecastlt;-forecast(arima,1)); RExecute(R,resultlt;-as.numeric(forecast$imply )); res=RGetInteger(R,result); return(res);

  4. #154
    Quote Originally Posted by ;
    Dear friends! There is a new problem. From the debugger not quite fantastic to observe the procedures which keep coming back since 2 errors: [4836] exclusion 40010007 in 7651C41F in C:\Windows\syswow64\KERNELBASE.dll EXCEPTION_CONTINUE_SEARCH [4836] exclusion 80000003 in 017F224E in C:\Program Files (x86)\Alpari Limited MT4\terminal.exe EXCEPTION_CONTINUE_SEARCH
    Those messages can be safely filtered.

    When I begin DbgView then the settings on the initial dialog are as follows in my dev-computer:



    This filters the sound so the debug output gets more meaningful.

    Quote Originally Posted by ;
    I am use auto.arima() for calculates. This function is implemented not correctly some times. Please help me. I have errors even launching terminal. I utilize tester egies maybe it is the cauce of errors. My R :....
    Can you post the code such as the function where R_calculates() gets called, please?

  5. #155
    Hey guys, thanks for this wonderful thread. I am just beginning, total noob using mql4, a little more familiar with R. I have a couple questions:

    1. After downloading the right files to your new mt4 new version (here: https://github.com/micclly/mt4R), I am now able to compile mt4R.mqh, mt4Test.mq4 and the 2 indiors without difficulty. But when I try to attach the script mt4rTest.mq4 to a chart, this is what DebugView messages. (Perhaps because we are saturday?) I'm worried about the lineup
    Quote Originally Posted by ;
    [2204] Invalid parameter passed to C runtime operate.
    . If that output is normal Could you please check?
    Quote Originally Posted by ;
    [1576] installed exception handler for C:\Users\ASUS UX32L\AppData\Roaming\MetaQuotes\Terminal\50CA3DFB 510CC5A8F28B48D1BF2A5702\MQL4\Libraries\mt4R.dll
    [1576] lt;2gt; Produce: trying to begin R: C:/Program Files/R/R-3.2.1/bin/x64/Rterm.exe --no-save
    [2204] Invalid parameter passed to C runtime operate.
    [1576] lt;2gt; ExecuteCode: in gt;gt;gt; options(digits=15)
    [1576] lt;2gt; ExecuteCode: out lt;lt;lt;
    [1576] lt;2gt; Produce: R successfully started
    [1576] RInit: RHandle = 6EDF95C (116259164)
    [1576] lt;2gt; ExecuteCode: in gt;gt;gt; foo lt;- c(0, 1.25, 2.5, 3.75, 5)
    [1576] lt;2gt; ExecuteCode: out lt;lt;lt;
    [1576] lt;2gt; ExecuteCode: in gt;gt;gt; baz lt;- foo * 42
    [1576] lt;2gt; ExecuteCode: out lt;lt;lt;
    [1576] lt;2gt; ExecuteCode: in gt;gt;gt; as.vector(baz)
    [1576] lt;2gt; ExecuteCode: out lt;lt;lt; [1] 0.0 52.5 105.0 157.5 210.0
    [1576] RDeinit: RHandle = 6EDF95C (116259164)
    [1576] lt;2gt; Cease: Quitting R
    [1576] lt;2gt; Cease: sending quit()
    [1576] lt;-1gt; TPlotEventLoop: terminating
    [1576] lt;-1gt; TRConsole: destroying
    [1576] removed exception handler for C:\Users\ASUS UX32L\AppData\Roaming\MetaQuotes\Terminal\50CA3DFB 510CC5A8F28B48D1BF2A5702\MQL4\Libraries\mt4R.dll
    [5356] SHIMVIEW: ShimInfo(Total )
    2. It would be a huge help if you could provide the possible mt4R app that can show me the way exactly mt4R and R communie to me. For example:Every 3 seconds let's say: Send OHLC data to R (closing prices, for example, reversed(?)) Use R to do a simple operation together with the timeseries, say, multiply the last record by two Plot this data into a R window for a second get back these data from R to mt4R Alert the last album (multiplied by two ) 3. In your opinion, what is the best documentation on the market for me?

    My purpose is to look the simplest EA that could communie with R, so I would make all my changes in R, not at the EA, as was told earlier in this thread also ). I realize that I ask a lot so the first answer gets 1000 awesomeness points

  6. #156
    Hi again,

    I am now running arbomat and trendomat without difficulty. Would continue to be useful to have an illustration of a functioning program sending information to and receiving from R.

    Thanks!

  7. #157
    It may be fascinating migrate this endeavor to MT5.
    Anyone has tried to use this dll in MT5? Unfortunately, to attempt it I want an mt4RTest.mq4 programmed in MT5 language and that I don't understand mql5 (yet!)
    If anyone understand how to interpret this evaluation script to mql5 could try it?

    Due

  8. #158
    Hi guys.

    I have been trying to conduct Arb-O-Mat together with my MT4 Version: 4 Build: 910, too with R-3.2.2 without a success. If there is a person who give me
    a thorough step by step tutorial on how to set up and run Arb-O-Mat like below image.

  9. #159
    Have you downloaded the updated DLL and MQL documents out of here? Https://www.mql5.com/en/code/11112

    Have you followed FXEZ' directions https://www.nigeriaforextrading.com/...ade-curve.html?

  10. #160
    Hi guys!
    I m using Windows 7 and also the previous version of MT4R.mqh and dll files... I've an issue since several cases of my EA (one per instrument) running simultaneously attribute the same integer as a deal for R.. . Perhaps because the integer is described using the internal clock of the processor and also that calling the RInit function at the same time increases the odds of getting the same integer? Any idea about how to solve this? I might place RHandle for every currency pair as international factors, assess these factors and deinitialize-reinitialize R until I get various integers as handles but I was wondering if there was a much better alternative....
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.