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
Replies
                     ClickAlgo
                     14 Nov 2017, 22:14
                                            ( Updated at: 11 Dec 2020, 09:19 )
                                    
Hi,
Take a look at this helper, it is free.
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

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