• Sign up >>

Order Modify Error 130

To add comments, please log in or register
William Roeder
20371
William Roeder  
  1. EAs do not open accounts. They open orders.

  2. Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.

  3. Don't try to use any price or server related functions in OnInit (or on load,) as there may be no connection/chart yet:
    1. Terminal starts.
    2. Indicators/EAs are loaded. Static and globally declared variables are initialized. (Do not depend on a specific order.)
    3. OnInit is called.
    4. For indicators OnCalculate is called with any existing history.
    5. Human may have to enter password, connection to server begins.
    6. New history is received, OnCalculate called again.
    7. New tick is received, OnCalculate/OnTick is called. Now TickValue, TimeCurrent and prices are valid.
To add comments, please log in or register