Hi Mery -- I ran your code and it worked fine.
Describe again what you are seeing when you run this code and what you think you should see. Thanks, Howard On Thu, Sep 24, 2009 at 3:07 AM, mery <[email protected]> wrote: > > > Dear sirs. > I want to export indicators in amibroker and i write with > this program But output is Last indicators? > please help me: > how do i export for each day ? > ------------------ > /* Export indicators by: <[email protected] <jmerriland%40yahoo.com>> > */ > fileout = fopen( "f:\\"+Name()+".txt", "w"); > > if( fileout ) > { > fputs( "Ticker | Date |macd \n", fileout ); > y = Year(); > m = Month(); > d = Day(); > > for( i = 0; i < BarCount; i++ ) > { > fputs( Name() + "|" , fileout ); > dateouts = StrFormat("%01.0f/%02.0f/%02.0f|",y[ i ], m[ i ], d[ i ] ); > > indicator0uts = StrFormat("%.1f|%.1f\n",MACD(),Signal()); > fputs( dateouts , fileout ); > fputs( indicator0uts,fileout ); > } > > fclose( fileout ); > } > > Buy = 0; > > >
