ReInit indicator when account changes

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
12983
WHRoeder 2015.04.27 23:14 #
 
If the timeframe changes if has to reinit to recalculate all bars. You had to see the comment go from 0 to 1. If you refuse to answer questions and perform tests, no one here can help you.
avatar
1109
Ovo 2015.04.28 09:03 #
 
WHRoeder:
If the timeframe changes if has to reinit to recalculate all bars. You had to see the comment go from 0 to 1. If you refuse to answer questions and perform tests, no one here can help you.

The topic is about changing the account, isn't it. You turned the topic to changing timeframes, and in fact nobody complains about changing timeframes. Now, you are talking about recalculating bars. Do you really believe that recalculating more bars is the remedy for a changed account? When you start the indicator in a demo account, and then the indicator does not register that it has switched to a real account? When the indicator does not notice, that the history folder changed and keeps feeding hst file in an incorrect folder? When your indicator feeds a remote connection and does not notice the account changed? There are a dozen more reasons why you need to register the account change. The question was HOW to register the ACCOUNT CHANGE in an INDICATOR, not quarrelling about global variables in experts or recounting bars. Please accept it.

avatar
12983
WHRoeder 2015.04.28 14:49 #
 
Ovo: The topic is about changing the account, isn't it. The question was HOW to register the ACCOUNT CHANGE in an INDICATOR
  1. It was but I was responding to
    tara: Also, init is no reinit? if not recompile?
    A deinit/init cycle is not a reload.
  2. You answered that nothing happened, which is false.
  3. Had you tried it, you would know about reload, and cycles, and whether an account change triggers one.
  4. There is nothing to register, there are no functions that register. Either an account change triggers it, or it does not.
  5. If not do what ale suggested and/or complain to Metaquotes.
    1. Can someone please advise where I send a Request for Support to Metaquotes. - MQL4 forum
    2. Get in touch with developers using Service Desk! - MQL5 forum
    3. Report it to the service desk. 'MQL5.community - User Memo' - an article about the algorithmic/automated trading in MetaTrader
    4. Report it to the Service Desk, not us users.
Back to topics list   | 1 2  

To add comments, please log in or register