[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Write to file



PureBytes Links

Trading Reference Links

You don't need to use an alertif() for that. An if() will do,

If( LastValue(Buy) ) // here you last value of Buy tiggers your write to
file.
    {
    // Write to file here, see fputs() and fgets() in help
    }

You'll have to check wether this give multiple write in real time, depends
on your type of signal. Else you may have the check your signal one bar
earlier or add some code to clean up your signal (Flip(()).
herman
  -----Original Message-----
  From: Beachie [mailto:beachie41@xxxxxxxxxxx]
  Sent: Tuesday, September 28, 2004 3:49 AM
  To: amibroker@xxxxxxxxxxxxxxx
  Subject: [amibroker] Write to file


  OK, I'll admit, I haven't even looked, just want to know if this can be
done.
  When an AlertIf  is triggered ( or any true condition for that matter) is
it possible to
  write the date/time & HLOC for that bar to a file?
  cheers



  Check AmiBroker web page at:
  http://www.amibroker.com/

  Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


        Yahoo! Groups Sponsor
              ADVERTISEMENT





----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

    b.. To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/