- Início
- Comunidade
- Programação
- coding the input data for a pre fixed values, howto?
Advertisement
Edit Your Comment
coding the input data for a pre fixed values, howto?
Membro Desde May 22, 2010
11 postagens
Aug 02, 2011 at 11:03
Membro Desde May 22, 2010
11 postagens
like to write the code for Mql4 of some indicator, so input values can be picked from a fix table
("extern int TF = 1,5,15,30,60,240,1440")
w/t the need to put explains or check the values entered.
this is practical for time frame entering, for instance.
any example of how it can be doen will be appreciated
EL
("extern int TF = 1,5,15,30,60,240,1440")
w/t the need to put explains or check the values entered.
this is practical for time frame entering, for instance.
any example of how it can be doen will be appreciated
EL
not the system is importent but your experience to read the market and take the right decision to refuse enter a trade

forex_trader_27988
Membro Desde Jan 26, 2011
974 postagens
Aug 02, 2011 at 11:19
Membro Desde Jan 26, 2011
974 postagens
not sure that i understand your question, but i liike to use the globalvariables to store/set variables...
see:
globalvariableget and globalvariableset functiions...
you can view all current global variables viia TOOLS -> VARIABLES or by pressing F3.
good luck.
see:
globalvariableget and globalvariableset functiions...
you can view all current global variables viia TOOLS -> VARIABLES or by pressing F3.
good luck.

forex_trader_27988
Membro Desde Jan 26, 2011
974 postagens
Aug 02, 2011 at 11:20
Membro Desde Jan 26, 2011
974 postagens
or, you could store them in a disk file and then read them frrom thata fiile..
Membro Desde May 22, 2010
11 postagens
Aug 02, 2011 at 11:28
Membro Desde May 22, 2010
11 postagens
thanks sister,
the user will pick the values from a preset list that will be shown in the Input window when he/she set the properties of the indicator. its should be like picking a color or logical value (true/false)
the user will pick the values from a preset list that will be shown in the Input window when he/she set the properties of the indicator. its should be like picking a color or logical value (true/false)
not the system is importent but your experience to read the market and take the right decision to refuse enter a trade

forex_trader_27988
Membro Desde Jan 26, 2011
974 postagens
Aug 03, 2011 at 03:56
(editado há Aug 03, 2011 at 04:05)
Membro Desde Jan 26, 2011
974 postagens
or, you could get really fancy and write a DLL that opens/runs a custom written windows application that has a data entry screen on it..
that would be cool..
that way, you would have complete control over the data entry process and the error checking of the entered data.
have fun.
i use dev-cpp to write my DLL's, download the one with the mingw stuff.
http://www.bloodshed.net/dev/devcpp.html
it is a free/donation optional windows C language ide and compiiler.
z/..

http://www.forex-tsd.com/metatrader-4-mql-4-development-course/3395-create-your-own-metatrader-extension-dll.html
that would be cool..
that way, you would have complete control over the data entry process and the error checking of the entered data.
have fun.
i use dev-cpp to write my DLL's, download the one with the mingw stuff.
http://www.bloodshed.net/dev/devcpp.html
it is a free/donation optional windows C language ide and compiiler.
z/..

http://www.forex-tsd.com/metatrader-4-mql-4-development-course/3395-create-your-own-metatrader-extension-dll.html
Membro Desde Jan 14, 2010
541 postagens
Aug 03, 2011 at 15:30
Membro Desde Jan 14, 2010
541 postagens
cubye1 posted:
like to write the code for Mql4 of some indicator, so input values can be picked from a fix table
("extern int TF = 1,5,15,30,60,240,1440")
w/t the need to put explains or check the values entered.
this is practical for time frame entering, for instance.
any example of how it can be doen will be appreciated
EL
It's not possible without a custom library, however you can just use a string and let the user enter M1 or H4, parse the string in init.

*Não serão tolerados uso comercial ou spam. O não cumprimento desta regra poderá resultar na exclusão da conta.
Dica: Ao adicionar uma URL de imagem/youtube, você estará automaticamente incorporando-a à sua postagem!
Dica: Digite o símbolo @ para que o nome de um usuário que participe desta discussão seja completado automaticamente.