intOnCalculate(constintrates_total,// price[] array size
constintprev_calculated,// number of handled bars at the previous call
constintbegin,// index number in the price[] array meaningful data starts from
constdouble&price[]// array of values for calculation
);intOnCalculate(constintrates_total,// size of input time series
constintprev_calculated,// bars handled in previous call
constdatetime&time[],// Time
constdouble&open[],// Open
constdouble&high[],// High
constdouble&low[],// Low
constdouble&close[],// Close
constlong&tick_volume[],// Tick Volume
constlong&volume[],// Real Volume
constint&spread[]// Spread
);
EA の OnCalculate() 関数は、Calculate イベントが発生したとき(最新の価格が変化したとき)に呼び出されます。
EA を最初にチャートにアタッチしたときにも呼び出されます。
voidOnChartEvent()constintid,// event ID
constlong&lparam,// long type event parameter
constdouble&dparam,// double type event parameter
conststring&sparam// string type event parameter
);