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

RE: [amibroker] Comfortable Alert tool



PureBytes Links

Trading Reference Links

Hello Herman,

 

i don’t want to test it. I still want to get audio alerts in realtime.

However i check out your code.

I hope if find it. Thanks.

 

Best regards

 

Thomas Zmuck

www.tradingbasis.com


From: Herman van den Bergen [mailto:psytek@xxxxxxxx]
Sent: Thursday, January 27, 2005 6:07 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Comfortable Alert tool

 

Thomas, see my code/post on this topic from a few days ago [ Speech interface with AB,  Wed 01/26/2005 6:40 AM ]. You may have to set

SetBarsRequired() to a very large number if you want to "test" it on other then the last bar.

 

best regards,

herman

-----Original Message-----
From: Thomas Zmuck [mailto:tzg@xxxxxxxxxxxxxxxx]
Sent: Thursday, January 27, 2005 11:55 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Comfortable Alert tool

Hello,

 

i am trying to create a comfortable audio alert tool.

It has worked when i have tried without parameters. However now it doesn’t work.

Can anyone check it please ?

If it is finished one can quickly create an audio alert without coding.

 

 

Below is the code:

 

Best regards

 

Thomas Zmuck

www.tradingbasis.com

 

 

 

_SECTION_BEGIN("Price");

Alarm_switch = ParamToggle("Alarm", "Off|On ",0);

ticker = ParamStr("Ticker","GBP A0-FX");

Alarm_LH = ParamToggle("Lower/Higher", "Lower|Higher ",0);

price = ParamField("Price");

Value = Foreign("Ticker","price");

Triggerlevel = Param("Trigger level",LastValue(Value),0,2,0.001);

_SECTION_END();

 

Cond1 = IIf(Alarm_LH == 0 AND Value < Triggerlevel,1,IIf(Alarm_LH == 1 AND Value > Triggerlevel,2,0));

 

 

Buy = Cond1 == 1;

Sell = Cond1 == 2;

 

 

AlertIf( Alarm_switch & Buy, "SOUND C:\\Windows\\Media\\ringin.wav", "Audio alert", 1 );

AlertIf( Alarm_switch & Sell, "SOUND C:\\Windows\\Media\\ringin.wav", "Audio alert", 2 );

 

 

 

 

 



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

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




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

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





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