How Put ComboBox for constants ?
-
i want Choose from values by Combobox, how i make this?
-
which values exactly?
if you want choose from non-standard mql4 values, you can do this only manually in mql code ...
but if your values are standard (like timeframes, prices, modes) - it can be done easily ....
for timeframe input type is ENUM_TIMEFRAMES

-
yes It`s Non-standard Where each strategy has a name , I want to choose between them.
-
so only manually in mql code with metaeditor (after generation from fxdreema) ...
https://docs.mql4.com/basis/types/integer/enumerationand after few changes and new generation from fxdreema you need do it again ... I think it can cost you a lot of effort for small visual change

-
This means I can not do it by Fxdreema
I try it by block custom MQL4 but failed. -
I never did anything for enumerations. In fact, I think you are the first one asking for that. But because I know myself, I think I won't do nothing about this soon, because it's not something that I feel urgent or at least interesting (for me)

What you can try is this. I only think that it will work, but I didn't tested it and I don't know for sure. Here https://fxdreema.com/studio/MQL4 look lower at the right side where "Custom functions" are. Click on New to create new one. Now, the expected format is a regular MQL4 function that has datatype, name, () and {}. So if you write something else, it will not work. But you can write an empty function and after that function you can write anything. Then in the project you must call that function from somewhere, let's say from "Custom MQL4 code" block. But note that this code will be added somewhere in the lower part of the MQL4 code, so this could be a problem.
-
Really all my questions are vague because my thoughts are deep

Thank you fxdreema do not know on studio MQL4 , however I'll try to implement your instructions -
@miro1360 said in How Put ComboBox for constants ?:
which values exactly?
if you want choose from non-standard mql4 values, you can do this only manually in mql code ...
but if your values are standard (like timeframes, prices, modes) - it can be done easily ....
for timeframe input type is ENUM_TIMEFRAMES

Yes. I tried again a few days ago and this way it works. I'm even optimizing on MT5.
-
@fxDreema Hello fxDreema.
You must have forgotten, but I had already asked for that. During this time, I had to manually modify the code, but now I discovered that it works here on fxDreema.
-
@tcanuto How i do it please ?
-
This way I did. Instead of writing PERIOD_H1, you can put 0 (current timeframe) also if you want.
@tcanuto said in How Put ComboBox for constants ?:
for timeframe input type is ENUM_TIMEFRAMES

-
@tcanuto Thank you

-
@tcanuto me podrias enseñar como hacerlo en fxdreema