Scripts: Export Indicator's Values v1 - page 2

 
How to export the indicator values only for the open prices of trades perfomed?
 
MIMAIL #:

Hey, good job! That's a really useful script.

I am having an small issue here...

When exporting ATR values with the script but since data is always delivered in 0.00 format i can't get values with more than two decimals.

E.g. 0.00045 is released as 0.00 as I see when I import the csv in Excel.

It doesn't seem to be an excel-number-display-issue but the data in the csv is already "cut" I guess...

Any idea on how to solve that?

Thank you in advance

In the script, find " outputData+=","+ DoubleToString(IndicatorBuffer[i],2);" and change that number in green to the number of decimal places in the indicator you want.

 

The Script writes a value every bar in the csv file, but my custom indicator have a buffer that only gives a value a couple times a day.

Any idea what can be the problem or should I change something in the code?



   double IndicatorBuffer[];
   SetIndexBuffer(0,IndicatorBuffer,INDICATOR_DATA);

   int bars=Bars(sSymbol,PERIOD_CURRENT);
   int to_copy=bars;

   int CustomHandle=iCustom(sSymbol,PERIOD_CURRENT,Indicator_Directory_And_Name);       // Change here.
   
   CopyBuffer(CustomHandle,0,0,to_copy,IndicatorBuffer);
   ArraySetAsSeries(IndicatorBuffer,true);


Buffers from my indicator

   SetIndexBuffer(0, Buffer1);
   PlotIndexSetDouble(0, PLOT_EMPTY_VALUE, EMPTY_VALUE);
   PlotIndexSetInteger(0, PLOT_ARROW, 172);
   SetIndexBuffer(1, Buffer2);
   PlotIndexSetDouble(1, PLOT_EMPTY_VALUE, EMPTY_VALUE);
   PlotIndexSetInteger(1, PLOT_ARROW, 172);
 
How to set this up to work with Volumes indicator? No matter what period do I put in, it returns an empty sheet. Thanks
Reason: