PureBytes Links
Trading Reference Links
|
I am trying to write BUY/SELL to output text file using below formula.
BUY output is writing repeatedly to text file. Say on current 5 minute
bar buy signal generated. Using LastValue(Buy) function it's writing
buy output text to repeatedly for that current 5 minute candle. It
should write buy signal once not repeatedly. I don't know how to use
StaticVarSet for this purpose. Can anyone help me with following code.
fh = fopen( "1FUTUREBUY.text", "a");
if( LastValue( Buy ))
{
fputs("[1,FUTURE,BUY]", fh );
fclose(fh);
}
else
{
printf("Error opening file");
fclose(fh);
}
fh = fopen( "1FUTURESELL.text", "a");
if( LastValue( Sell))
{
fputs("[1,FUTURE,SELL]", fh );
fclose(fh);
}
else
{
printf("Error opening file");
fclose(fh);
}
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|