Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Before you write any issue read here please! #5

Open
Kinzel opened this issue Jan 16, 2021 · 5 comments
Open

Before you write any issue read here please! #5

Kinzel opened this issue Jan 16, 2021 · 5 comments
Labels
good first issue Good for newcomers

Comments

@Kinzel
Copy link
Owner

Kinzel commented Jan 16, 2021

Hello there!

Before you post any issue, please check:

  1. Check if your internet is working properly.
  2. Check if socket in MT5 was successfully created by mt5R (MT5). Check for Server socket created in "Experts" tab in MT5. If you are not getting the message mentioned, close and reopen MT5.
    socket
  3. MT5.Ping() is returing TRUE.
  4. MT5.CheckVersion() is returing TRUE.

Still having problems? Don't be shy! Post it!

@Kinzel Kinzel added the good first issue Good for newcomers label Jan 16, 2021
@Kinzel
Copy link
Owner Author

Kinzel commented Jan 16, 2021

Some minor things to look at:

  • Check if you're not running mt5R (MT5) in two charts simultaneously.

If this happens and they are configured on the same port (default 2345), one will not be able to create the socket.

(Advanced) If you want to do this on purpose, be sure to configure them for different ports. Use MT5.ChangeDoorSocket() to change default door in R's global environment.

@R470R
Copy link

R470R commented Jan 24, 2021

Hello, I'm amazed by this package.

I installed it, everything seemed to work fine. I tried a lot of commands and it worked, but a few don't.
When I try to get data with MT5.GetSymbol(), it appears
2021.01.24 20:25:35.177 mt5R v0_1_2 (GBPUSD!,H1) M1ERROR2!NZDHUF in MT terminal
and Symbol was not found? in RStudio output.

Anyone has some hints ?

Best Regards

P.S. The package is great <3

@Kinzel
Copy link
Owner Author

Kinzel commented Jan 25, 2021

Hello, I'm amazed by this package.

I installed it, everything seemed to work fine. I tried a lot of commands and it worked, but a few don't.
When I try to get data with MT5.GetSymbol(), it appears
2021.01.24 20:25:35.177 mt5R v0_1_2 (GBPUSD!,H1) M1ERROR2!NZDHUF in MT terminal
and Symbol was not found? in RStudio output.

Anyone has some hints ?

Best Regards

P.S. The package is great <3

Hello @R470R, how is doing? I do hope you are keeping well!

I'm sorry about your experience. Reading your issue I already know what cause it.

I needed to choose two characters from ASCII Table (not extended) to build orders sequence, using my prior experience with Forex brokers, I chose ! and @. I never had seen any usage of both - but your broker does it! And thats why your post bring so much!

It uses GBPUSD! instead of GBPUSD. Its NZDHUF! as well?

Unfortunately when any received string come with any of this chosen characters in wrong places, the received string from socket will not be read accordingly. You will probably won't find any errors when symbols do not envolve any of those characters (! and @).

I'll reactivate the switch for this kind of issue (I innocently removed it in the premature versions) and change the the word. I'll try to check a way to make it more robust!

More guidace:

  • If your broker use ! to name pairs, mt5R will not work properly in an extensive range.
  • The problem is not which chart the mt5R EA is attached.
  • To MT5.GetSymbol() work properly check if symbol is in MT5's marketwatch. Check MT5.Marketwatch(), MT5.MarketwatchAdd, MT5.SymbolInMarketwatch.

I'll mark this issue and fix it in this coming days. In the next update (0.1.3) that is comming in 30 Jan 2021 (in 5 days from now). I give you the certainty that mt5R 0.1.3 will work well in your broker, as any other.

Thank you!

@R470R
Copy link

R470R commented Jan 25, 2021

Sir thank you so much, this package is awesome!

I Love It !

@Camilo-Mora
Copy link

You say to ..."Check if you're not running mt5R (MT5) in two charts simultaneously."
How is that done?
Also if one sets MT5.ChangeDoorSocket() to a different socket number, will this same number needs to be set in MT5 somewhere?
This is a great package and some instructions/ details will make it even more useful....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants