Forum

Passing dynamic arrays to a function

The function will parse arrays in a certain way, but they are dynamic and can be of different size all the time. Please let me know if function declaration will work as follows: double myFunction ( double dataPoints[]); Thank you

Metatrader 4 is unable to keep account data saved permanently

I always tick the box "Save account information ", but after every hard restart I have to reenter everything again. Additionally, MetaTrader in fact stopped understanding hostnames, so in each such occasion I have to enter server's numerical IP address too. Please let me know if I can have a backup

A recursive function does not work as I expect it

This recursive function should return "1" in the first call (with "3"), but it still returns "false" ("0"). int init() { Print ( "3: " ,recursiveFunction( 3 )); Print ( "12: " ,recursiveFunction( 12 )); Print ( "25: " ,recursiveFunction( 25 )); } bool recursiveFunction ( int a= 0 , int counter= 1 )

How to prevent FileWrite() from adding a new line after each call?

Each time I use FileWrite() in TXT or CSV files it appends the file starting from a new line. However, I need it to write data into the same line, so that Excel imports data into the same row. Each line will hold more than 256 characters, so I cannot use temporary string variables. Please let me