The differences among OnCalculate(), start() and OnStart()

Back to topics list To post a new topic, please log in or register
avatar
50
dolemi 2015.03.02 15:33
 

Does any one can tell:

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

How to get prev_calculated value in start() function?

Cheers

avatar
12998
WHRoeder 2015.03.02 15: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.
avatar
50
dolemi 2015.03.03 14: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
avatar
6
MehZhure 2015.05.12 15:50 #
 
dolemi:
Thanks
It may also help clear things up to review this information...  https://docs.mql4.com/runtime/event_fire#calculate
Back to topics list  

To add comments, please log in or register