how can out every number ?
-
hello
if price like ( 122.235 ) and i want from this price or number out from it every number alone and save in variable like ( 1 - 2 - 2 - 2 - 3 - 5 ) every number alone from price
how can i do that ? in fxdreema
thank you -
@moon with these 2 functions:
https://docs.mql4.com/convert/doubletostr
https://docs.mql4.com/strings/stringsubstr -
@roar how i can do that in fxdreema ?
how i can use this function in fxdreema? -
@roar i want if price like 125.288
i want i take first number alone 1
and second number alone 2
and third number alone 5
and four number aone 2
and five number alone 8
and six number alone 8
and save every number alone in variables -
you need to use the block custom code and decide how you want to put in the length of the pair and generate enough variables for that ....
-
@bk7 can show me example and share link fxdreema project
-
as i said before you have to decide on how to determine the amount of numbers first. then i can show you a quick example...
-
@bk7 ok
like symbol USDJpy
any price have will be on this symbol
i want out number from it like above exampleI want to break the number price
if price like ( 125.288 ) any price in any time will be - not stable price
i want take first number alone 1 and save it
and second number alone 2 and save it
and third number alone 5 and save it
and four number aone 2 """
and five number alone 8 """
and six number alone 8 """"
and save every number alone in variablesthis you ask about it ?
-
@moon
no i asked about how to determine the length of the numbers. your example has a lenght of 6 symbols, but that can be different from symbol to symbol.
that would be the first step... -
@bk7 ok will be 6 like price in usdjpy
-
-
@bk7 thank you very
its work excellent