• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 2:29am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:29am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Export indicator objects or its calculations to a CSV file 2 replies

Export mt4 data to different columns of a .csv file 1 reply

Getting indicator data to .csv file 4 replies

Importing data from CSV file 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Export RSI data to a csv file?

  • Post #1
  • Quote
  • First Post: Sep 22, 2007 5:51am Sep 22, 2007 5:51am
  •  dogberry
  • | Joined Jul 2007 | Status: Member | 283 Posts
Hi, could anyone tell me if it's possible to export RSI data to a CSV file, just like exporting the historical price data? Many thanks in advance!
  • Post #2
  • Quote
  • Last Post: Sep 22, 2007 9:05pm Sep 22, 2007 9:05pm
  •  tesla
  • Joined Oct 2006 | Status: Friendly Neighborhood Programmer | 533 Posts
This sixty seconds of code brought to you by Tesla...

PHP Code
 #property show_inputs

extern int RSI_Period = 10;

int start() {

    
// open file
    
int iFile = FileOpen("RSI_Dump.csv",FILE_WRITE|FILE_CSV,",");
    if(
iFile == -1) {
        Print(
"Unable to create file.");
        return(
0);
    }
    
    
// iterate bars
    
for(int i=Bars-RSI_Period-1;i>=0;i--) {
        
string sTime = TimeToStr(Time[i],TIME_DATE|TIME_SECONDS);
        
double dRsi  = iRSI(NULL,0,RSI_Period,PRICE_CLOSE,i);
        
FileWrite(iFile,sTime,dRsi);
    }
    
    
// close file
    
FileFlush(iFile);
    
FileClose(iFile);
    Print(
"Done.");
} 
 
 
  • Platform Tech
  • /
  • Export RSI data to a csv file?
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022