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

RE: [amibroker] Exporting AlertIF() to a text file



PureBytes Links

Trading Reference Links










<font size=2 color="#993366"
face=Arial>Utilizing ALERTIF() I&#8217;ve tried to test this in AA with SCAN and BACKTEST
and I can&#8217;t get it to write to a file.

<font size=2 color="#993366"
face=Arial>Yes, Alerts are enabled.

<font size=2 color="#993366"
face=Arial> 

<font size=2 color="#993366"
face=Arial>When using ALERTIF() to write to a file does AmiBroker EXEC create the
file to be put in the folder?

<font size=2 color="#993366"
face=Arial> 

<font size=2 color="#993366"
face=Arial>What will the file format look like in the folder for each signal
generated?  Sell.txt <span
> or do I have to set up a separate
database and only have it write to it ???

<font size=2 color="#993366"
face=Arial>Or, do I need to create the .TXT file and place an empty file in the
folder for it to write to?

<font size=2 color="#993366"
face=Arial>It just isn&#8217;t clear from the Help.

<font size=2 color="#993366"
face=Arial> 

<font size=2 color="#993366"
face=Arial>I want the contents, at this point, to read &#8230;

<font
size=2 color=black face=Arial>  <font
size=2 color=black face=Arial>"SELL","2000","BGEN","LMT"
etc....  <span
class=EmailStyle22><span
>

<font
size=1 color=green face="Courier New">PositionSize = 2000;

<font
size=1 color=green face="Courier New">G2 = Blah;

<font
size=1 color=green face="Courier New">G0 = BlahBlah; //Where the Cross result generates a
SELL signal

<font
size=1 color=green face="Courier New">Equity(1);

<font
size=1 color=blue face="Courier New">AlertIf<font size=1 color=black
face="Courier New">( <span
>Cross<font
size=1 color=black face="Courier New">(G2,G0), <font size=1 color=fuchsia
face="Courier New">"EXEC C:\\Program Files\\AmiBroker\\AmiTrade"<font
size=1 color=black face="Courier New">, <font size=1 color=fuchsia
face="Courier New">"SELL"<font size=1 color=black
face="Courier New"> + <span
>" , "<font
size=1 color=black face="Courier New"> + <font size=1 color=blue
face="Courier New">WriteVal<span
>(PositonSize)
+  <font size=1
color=fuchsia face="Courier New">" , "<font size=1 color=black
face="Courier New"> + <span
>Name<font
size=1 color=black face="Courier New">() + <font size=1 color=fuchsia
face="Courier New">" , "<font size=1 color=black
face="Courier New"> + <span
>"LMT"<font
size=1 color=black face="Courier New">, type = <font size=1 color=fuchsia
face="Courier New">2<span
>, flags = <font
size=1 color=fuchsia face="Courier New">1<font size=1
color=black face="Courier New">+<span
>2<font
size=1 color=black face="Courier New">+<font size=1 color=fuchsia
face="Courier New">4<span
>+<font
size=1 color=fuchsia face="Courier New">8<font size=1
color=black face="Courier New">, lookback = <font size=1 color=fuchsia
face="Courier New">1<span
> );<span
class=EmailStyle22><span
>

<span
class=EmailStyle22><span
> 

<span
class=EmailStyle22><span
>Having
read the Help file and searched the group &#8211; Understanding FLAGS behavior in
this circumstance is not clear.

<span
class=EmailStyle22><span
>Is there a
separate FLAGS = ?? to execute the <font size=1
color=fuchsia face="Courier New">"EXEC <font size=2
color="#993366" face=Arial>?

<span
class=EmailStyle22><span
>Is FLAGS =
8 necessary if the formula already contains EQUITY(1)?

<font size=2 color="#993366"
face=Arial> 

<font size=2 color="#993366"
face=Arial>OBTW, it would be great to have additional examples in the Help file to
make it cut and paste template for both &#8220;Write to File&#8221; and a &#8220;URL&#8221; example for
the newer folks&#8230;

<font size=2 color="#993366"
face=Arial>since AmiBroker is going to be &#8220;The Industry Standard&#8221;&#8230; <span
class=EmailStyle22><span
>J<span
class=EmailStyle22><span
>

<font size=2 color="#993366"
face=Arial> 

<font size=2 color="#993366"
face=Arial>Thanks in advance

<font size=2 color="#993366"
face=Arial>Mr Valley

<font size=2 color="#993366"
face=Arial> 

<font size=2 color=black
face=Tahoma>-----Original
Message-----
From: dingo
[mailto:dingo@xxxxxxxxxx]
Sent: Tuesday, April 22, 2003
10:12 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Exporting
AlertIF() to a text file<span
>

<font size=3 color="#993366"
face="Times New Roman"> <font
color="#993366">

<span
>It can but if you're
creative with it you can achieve what you want..<font
color="#993366">

<font size=3 color=black
face="Times New Roman"> <font
color="#993366">

<span
>d<font
color="#993366">

-----Original Message-----
From: Mr Valley
[mailto:valleymj@xxxxxxxxx] 
Sent: Wednesday, April 23, 2003
12:09 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Exporting
AlertIF() to a text file<span
>

<font
size=2 color=navy face=Arial>Thanks, I thought the EXE would only launch external application.

<font
size=2 color=navy face=Arial> 

<font
size=2 color=navy face=Arial>Mr Valley

<font
size=2 color=navy face=Arial> 

<font size=2 color=black
face=Tahoma>-----Original
Message-----
From: dingo
[mailto:dingo@xxxxxxxxxx]
Sent: Tuesday, April 22, 2003 9:58
PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Exporting
AlertIF() to a text file<span
>

<font size=3 color=black
face="Times New Roman"> <font
color="#993366">

<font size=2 color=blue
face=Arial>Check
the topic "" in the help file 

<span
>Tutorial: Using
formula-based alerts<span
>

<font size=3 color=black
face="Times New Roman"> <font
color="#993366">

<font size=2 color=blue
face=Arial>pay
particular attention to the passage:<span
> <span
>

<span
>"EXEC command
launches external application or file or URL specified after EXEC command.
<optional args> are attached after file name and <span
>text is attached at the end"<font
color="#993366">

<span
>d<font
color="#993366">

-----Original Message-----
From: Mr Valley
[mailto:valleymj@xxxxxxxxx] 
Sent: Tuesday, April 22, 2003
11:35 PM
To: Amibroker
Subject: [amibroker] Exporting
AlertIF() to a text file<span
>

<font
size=2 color=black face=Arial>All,

<font
size=2 color=black face=Arial> 

<font
size=2 color=black face=Arial>Using AlertIF(), how can I export the Real time
BUY/SELL SHORT /COVER signals in text format to a folder on my drive?

<font
size=2 color=black face=Arial>Example:

<font
size=2 color=black face=Arial>  <font
size=2 color=black face=Arial>"BUY","2000","BGEN","LMT"
etc....

<font
size=2 color=black face=Arial> 

<font
size=2 color=black face=Arial>Mr Valley

<span
>

<span
>Send BUG REPORTS
to bugs@xxxxxxxxxxxxx<font size=2 color=black
face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black> 

<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
> <span
>

<font size=3 color=black
face="Times New Roman"><br
>



<span
>Send BUG REPORTS
to bugs@xxxxxxxxxxxxx<font size=2 color=black
face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black> 

<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
> <span
>

<span
> <font
color="#993366">

<span
>

<span
>Send BUG REPORTS
to bugs@xxxxxxxxxxxxx<font size=2 color=black
face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black> 

<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
> <span
>

<font size=3 color=black
face="Times New Roman"><br
>



<font size=2 color=black
face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
size=2 color=black face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black> 

<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
> <span
>










Yahoo! Groups Sponsor


  ADVERTISEMENT









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



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