0
Answered

ATAS.Indicators.CumulativeTradesRequest

Bidder 1 year ago updated 1 year ago 3

Hello,   Could you please give a simple example of how to use the ATAS.Indicators.CumulativeTradesRequest that is documented in the address below ?  


Thanks!   


https://atas.net/indicators/class_a_t_a_s_1_1_indicators_1_1_cumulative_trades_request.html

I have been able to create an instance of the class using the code below but I don't understand how to process the data it is supposed to be returning.   

Thanks 

CumulativeTradesRequest CumTrd = new ATAS.Indicators.CumulativeTradesRequest(DateTime.Now.AddDays(-5), DateTime.Now, 50, 999);

Answered

Hello

Yoy need to override OnCumulativeTradesResponse method and using this method you will receive responces to CumulativeTradesRequest.

Hello.  The below code overides the OnCumulativeTradesResponse and compiles without errors.  

But something is wrong because OnCumulativeTradesResponse never gets called 

Can you please tell me what is wrong ?  Thanks