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

RE: [amibroker] alertif exec - simultaneous trading systems / alerts



PureBytes Links

Trading Reference Links

Instead of doing separate AlertIf functions for each of your 9 charts,
write a message to a staticVar. Static var names will be "alert1"
through "alert9". Then create a TimerControl chart which will loop
through each staticVar using a for loop 1 through 9 so you can recreate
each of these names in a loop. You will then have all 9 Alerts in-hand
simultaneously in a single place and can decide how to prioritize and/or
delay multiple alerts.

Each alert should be cleared by the TimerControl chart after it is read.
--
Terry
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
| Behalf Of livetraderman
| Sent: Thursday, July 14, 2005 01:11
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: [amibroker] alertif exec - simultaneous trading systems /
| alerts
| 
| Hello,
| 
| I run Amibroker 4.70.5 RT version with esignal forex datafeed.
| 
| There are 9 different 5 minute charts opened simultaneously,
| each with its own trading system running. The trading systems
| generate e.g. BUY signals and I use "alterif" function to execute
| different exe files (macros of another application).
| 
| Once in a while, when the independent trading systems
| generate a buy signal coincidentally at the same time (hour and
| minute), accordingly alertif tries to execute two or more exe files
| simultaneously. This causes an error message of my third party
| application.
| 
| My question: How can I prevent this to happen ?
| 
| I would like to implement a solution which prevents this successfully
| e.g. with an "OR" function, but still lets me run my 9 different
| trading systems on 9 different currency pairs. So to speak like
| a "filter" which controls the 9 different trading systems. I thought
| about using the "second()" function to differ the signals from each
| other, but this leads to unwanted results due to delayed order
| execution (my strategy is scalping very small profit targets).
| 
| Thank you very much for your help in advance.
| 
| Regards
| Robert
| 
| 
| 
| 
| 
| 
| 
| ------------------------ Yahoo! Groups Sponsor --------------------~--
| >
| Try Online Currency Trading with GFT. Free 50K Demo. Trade
| 24 Hours. Commission-Free.
| http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
| --------------------------------------------------------------------~-
| >
| 
| Please note that this group is for discussion between users only.
| 
| To get support from AmiBroker please send an e-mail directly to
| SUPPORT {at} amibroker.com
| 
| For other support material please check also:
| http://www.amibroker.com/support.html
| 
| 
| Yahoo! Groups Links
| 
| 
| 
| 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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/

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