GithubHelp home page GithubHelp logo

Comments (15)

mikha-dev avatar mikha-dev commented on June 14, 2024

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

hi @mikha-dev thanks for your feedback, i have fixed this issue by passing mtmanapi64.dll. but i have problem when get User list from UserRequest function. i have function like this

total := 0
users = mtapi.UsersRequest(&total)
for i := 0; i < total; i++ { 
  usr := mtmanapi. UserRecordArray_getitem(users, i)
  fmt.Print(usr.GetName())
}

when call GetName() error slice bounds out of range appear. any idea with this?

from mt4-go.

mikha-dev avatar mikha-dev commented on June 14, 2024

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

i see, i got error when running this command

gox -osarch="windows/386" ./

error :

--> windows/386 error: exit status 1
Stderr: can't load package: package .: build constraints exclude all Go files in

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

thanks bro, you are awesome @mikha-dev, reinstalling go to 32 bit version and its work. anyway do you know how to handle uintptr data when using Pump Mode? lets say i want to get Updated users in Pump mode

from mt4-go.

mikha-dev avatar mikha-dev commented on June 14, 2024

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

Thanks u bruh u save my time to code with c++ 😁

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

hi @mikha-dev , i'm stuck on this function

func (meta MetaController) GetAccount(c *gin.Context) {
	total := 0
	login := 1
	usr := meta.MtAPI.UserRecordsRequest(login, &total)
	log.Println(usr)
	log.Println(total)
	c.JSON(200, "user")
}

on Metaqutes documentation function UserRecordsRequest need array of login, but when use in go this function require *int variable, my question is how to create array and store it on *int data type? thanks

from mt4-go.

mikha-dev avatar mikha-dev commented on June 14, 2024

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

after trying im getting total value = 0

from mt4-go.

mikha-dev avatar mikha-dev commented on June 14, 2024

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

after adding *&*loginn this error message apper invalid indirect of loginn (type int)invalid indirect of loginn (type int)

total := 0
loginn := 6971
usr := meta.MtAPI.UserRecordsRequest(*&*loginn, &total)
log.Println(usr)
log.Println(total)

from mt4-go.

mikha-dev avatar mikha-dev commented on June 14, 2024

from mt4-go.

tarikhagustia avatar tarikhagustia commented on June 14, 2024

hi @mikha-dev , finally im using AdmUserRequest to get user information, but i have some problem when creating rest full api using gin. when we hit api at same time (for this case with 10 hit at same time). the mtmanager api return error and cannot call the function, i think because connection between go and mt4 was disconnect, any idea with this? thanks

from mt4-go.

KnBrBz avatar KnBrBz commented on June 14, 2024

hi @mikha-dev , finally im using AdmUserRequest to get user information, but i have some problem when creating rest full api using gin. when we hit api at same time (for this case with 10 hit at same time). the mtmanager api return error and cannot call the function, i think because connection between go and mt4 was disconnect, any idea with this? thanks

As far as I know, there is a limit for amount of requests for manager api

from mt4-go.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.