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

Re: [amibroker] Re: DTFFT



PureBytes Links

Trading Reference Links

Help request!
Im having trouble with the AlertIF function in an indicator.
Whenever the LastBar is selected - The Alerts are re-triggered.

         Anyone know why this might be?

Note * The folowing section is within a FOR loop (hence the use of Unique 
Alert ID's).
The Alert code is:
// Notify with AlertIf
                 if (AlertEnable)
                 {
                 AI = (i*10); // Create Unique AlertID's (Types).
                 AlertIf(ProfitStopFlag,"",sym + " ProfitStopReached 
",(AI+1));
                 AlertIf(EvenStopFlag,"",sym + " EvenStopReached ",(AI+2));
                 AlertIf(LossStopFlag,"",sym + " LossStopReached ",(AI+3));
                 AlertIf(TrailStopFlag,"",sym + " TrailStopReached ",(AI+4));
                 // Problem - When Last bar is selected - Alerts are 
Re-Triggerd!!
                 }






------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->

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