save to file (excel or text)

Created at 14 Nov 2017, 09:38
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
itmfar's avatar

itmfar

Joined 08.11.2017

save to file (excel or text)
14 Nov 2017, 09:38


Is there any way that an indicator can save history of candles in excel or any kinds of files?

public override void Calculate(int index)
        {
            double mClose = MarketSeries.Close[index];
            double mX = MyMethod(index);
        }
        
        public double MyMethod(int index){
        // some code 
        }

 

for example in this cod I'm going to save mClose and mX in file for each index


@itmfar
Replies

itmfar
14 Nov 2017, 09:52

or I want to export a list of doubles with its indexs


private List<double> extremumListComplete = new List<double>();

 


@itmfar

ClickAlgo
14 Nov 2017, 22:14 ( Updated at: 11 Dec 2020, 09:19 )

Hi, 

Take a look at this helper, it is free.

https://clickalgo.com/

Paul.


@ClickAlgo

itmfar
15 Nov 2017, 11:04

RE:

Paul_Hayes said:

Hi, 

Take a look at this helper, it is free.

https://clickalgo.com/ctrader-cbot-indicator-data-logger

Paul.

thank you Pual but is there any way to save file in indicator instead of Cbot?


@itmfar

ClickAlgo
15 Nov 2017, 13:17

yes, it can be used with an indicator also.


@ClickAlgo

itmfar
16 Nov 2017, 15:17

RE:

Paul_Hayes said:

yes, it can be used with an indicator also.

thats great Pual . thanks


@itmfar