0
Answered

ATAS.Indicators.CumulativeTradesRequest

Bidder 2 years ago updated by Андрей Ринас2 (ATAS developer) 3 months ago 4

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 

Hi, in this case you only create the request but not send it. To send please use RequestForCumulativeTrades