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

[amibroker] Applystop question



PureBytes Links

Trading Reference Links

If I reach 1/2 of my profit, I want to set my stop to breakeven.  I therefore change the stop from some positive value to zero (that is, the original entry).  But the stop seems to execute immediately when I do this, even though the OHLC of the bar are all above the entry.  Maybe I'm doing something wrong?
 
Thanks
 
Thanks
 
----- Original Message -----
To: AB-Main
Sent: Sunday, October 02, 2005 5:40 PM
Subject: [amibroker] Alertif()

Having problems with alert if....
 
The 2nd alertif code below works (most of the time). By most of the time I mean it works at specific points on the chart, and not at others meeting the same criteria.
 
The 1st alertif code, has less strict criteria, uses the same sound file, but never works.
 
I have coded the flags (or at least I think so) to trigger every time
 
Appreciate any help
 
Ara
 

AlertIf((SDiv_Code==12 OR SDiv_Code==13 OR SDiv_Code==14),"Sound D:\\Amibroker\\Wav Files\\Lower High.wav","",5,0,100 );

AlertIf((SDiv_Code==12 OR SDiv_Code==13 OR SDiv_Code==14) AND Bear_Diverge==1,"Sound D:\\Amibroker\\Wav Files\\Lower High.wav","",5,0,100 );

 

 



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