PureBytes Links
Trading Reference Links
|
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 <jmerriland@xxxxxxxxx> 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: <jmerriland@xxxxxxxxx> */
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;
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|