Hello all,
I'm kinda new to MetaTrader programing...mostly self taught. I'm trying to get an EA to remember a specific bool setting on shut down (deinit) and then restore that same bool setting on start up (init) again.
For this EA it is of particular importance as it is the difference between holding a trade for into a longer period of time (riding a trend) or closing it out too soon.
I've checked the file functions but am confused because Files only seem to handle integers (int) or doubles. A bool, I believe, is different and simply restoring a number won't do.
Is it possible to get an EA to restart with the same bool setting it shut down with?
Thanks for your help!!
I'm kinda new to MetaTrader programing...mostly self taught. I'm trying to get an EA to remember a specific bool setting on shut down (deinit) and then restore that same bool setting on start up (init) again.
For this EA it is of particular importance as it is the difference between holding a trade for into a longer period of time (riding a trend) or closing it out too soon.
I've checked the file functions but am confused because Files only seem to handle integers (int) or doubles. A bool, I believe, is different and simply restoring a number won't do.
Is it possible to get an EA to restart with the same bool setting it shut down with?
Thanks for your help!!