Anybody having Idea on AMIBROKER issuing SMS on Signals Generation....!!!!!

pkgmtnl

Well-Known Member
#21
Try this:

http://www. tradesender. com/
1) It does not send Regular kind of SMS on any Mobile;

2) You need to have Android based mobile where there application would would receive the SMS/ Message which is charged per message. This message is termed as SMS by them.

3) This good feature is already free in PushBullet (for Android as well as Browser);

Thanks.
 

mittens

Active Member
#23
I have solved the problem by sending emails from AFL using AlertIf.
On my android phone I have an app "Mail Alert", the app looks for keywords in subject and start an alert sound. The alert can be made to loop so that it will switch off only when you have seen it, nice feature when taking a nap.

But its not SMS hence internet is required.

Code something like this :
AlertIf( condition, "EMAIL", "________your message______", 5 );
 

yasu222

Active Member
#24
USE PUSHBULLET APLICATION IN YOUR ANDROID PHONE AND PASTE THE FOLLOWING CODE IN YOUR AFL. WHENEVR BUY/SELL TRIGGER IN YOUR AMIBROKER THEN THE ALERT CAN BE SEEN IN YOUR ANDROID PHONE...

SEE THE LINK BELOW -
PHP:
http://www.traderji.com/amibroker/95412-my-visual-effect-afl-collection-5.html
PHP:
_SECTION_BEGIN("PushBullet");

EnableScript("VBScript"); 

<% 

Public Sub pushbullet(Message_Text)
Dim Message 

'Your Message 
Message = Message_Text

Dim objXmlHttpMain , URL

strJSONToSend = "{""type"": ""note"", ""title"": ""Alert"", ""body"":""" &Message_Text&"""}"

URL="https://api.pushbullet.com/v2/pushes" 
Set objXmlHttpMain = CreateObject("Msxml2.ServerXMLHTTP") 
on error resume next 
objXmlHttpMain.open "POST",URL, False 
objXmlHttpMain.setRequestHeader "Authorization", "Bearer xxxxxxxxxxxxxxxxxxxxxxxxx"
objXmlHttpMain.setRequestHeader "Content-Type", "application/json"


objXmlHttpMain.send strJSONToSend

set objJSONDoc = nothing 
set objResult = nothing

'Store response 
'msgbox(objXmlHttpMain.responseText)
'response.Write (objXmlHttpMain.responseText) 
alert("Hi")
End Sub 

%> 

pb = GetScriptObject(); 



if (LastValue(ValueWhen(Ref(Buy,-1),BarIndex())==BarIndex()) AND StaticVarGet(Name()+GetChartID()+"buyAlert")==0 )
{
pb.PushBullet("Buy Alert in " +Name() + " : BuyPrice Value is " + BuyPrice + " Time " + TimeNum());
StaticVarSet(Name()+ GetChartID() + "buyAlertBar", LastValue(TimeNum()));
}

if (LastValue(TimeNum()) == StaticVarGet(Name()+GetChartID()+"buyAlertBar"))

StaticVarSet(Name()+GetChartID()+"buyAlert",1); //alert was triggered, no more alerts on this bar
else
StaticVarSet(Name()+GetChartID()+"buyAlert",0); // new bar formed, and alerts can be trigered.



if (LastValue(ValueWhen(Ref(Sell,-1),BarIndex())==BarIndex()) AND StaticVarGet(Name()+GetChartID()+"sellAlert")==0 )
{
pb.PushBullet("Sell Alert in " +Name() + " : SellPrice Value is " + SellPrice + " Time " + TimeNum());
StaticVarSet(Name()+ GetChartID() + "sellAlertBar", LastValue(TimeNum()));
}

if (LastValue(TimeNum()) == StaticVarGet(Name()+GetChartID()+"sellAlertBar"))

StaticVarSet(Name()+GetChartID()+"sellAlert",1); //alert was triggered, no more alerts on this bar
else
StaticVarSet(Name()+GetChartID()+"sellAlert",0); // new bar formed, and alerts can be trigered.

_SECTION_END();
 

Similar threads