Download MetaTrader 5
To add comments, please log in or register
Move from theory to practice. Code Base will help you!
dolemi
145
dolemi 2015.03.02 14:33 

Does any one can tell:

What are differences among OnCalculate(), start()  and OnStart()?

How to get prev_calculated value in start() function?

Cheers

whroeder1
13627
whroeder1 2015.03.02 14:54  
dolemi: What are differences among OnCalculate(), start()  and OnStart()? How to get prev_calculated value in start() function?
Read the documentation
  1. start(): old way, script, EA, or indicator. Indicator uses IndicatorCounted()
  2. New way OnCalculate - indicator only. OnStart - script only. OnTick - EA only.
dolemi
145
dolemi 2015.03.03 13:08  
WHRoeder:
dolemi: What are differences among OnCalculate(), start()  and OnStart()? How to get prev_calculated value in start() function?
Read the documentation
  1. start(): old way, script, EA, or indicator. Indicator uses IndicatorCounted()
  2. New way OnCalculate - indicator only. OnStart - script only. OnTick - EA only.
Thanks
Mark Reno
148
Mark Reno 2015.05.12 13:50  
dolemi:
Thanks
It may also help clear things up to review this information...  https://docs.mql4.com/runtime/event_fire#calculate
/
To add comments, please log in or register