For getting buy and Sell alert through SMS, I developed one Custom function using MSX called "SMS.Alert" which takes 2 "array argument" and a constant as parameters. The first two parameter is nothing but "experts buy and sell fml result array" and the third one is expert_id ( say 1- Bolinger, 2 -RSI, etc). The formuala is used as follows
sec1:=Security("Sec1",ExtFml("Sms.Alert",expert_buy_fml,expert_sell_fml,1));
sec2:=Security("Sec2",ExtFml("Sms.Alert",expert_buy_fml,expert_sell_fml,1));
sec3:=Security("Sec3",ExtFml("Sms.Alert",expert_buy_fml,expert_sell_fml,1));
(sec1+sec2+sec3); // irrelevant
Advantage : In One Expert or Window I can run the alert for multiple securities
The above formula will run the "expert buy and sell" on all the securities and will give me alert whenever the criteria is met.
The problem Now I am facing is that, the datetime that I am getting is the base securities datetime,instead of getting the opened securities datetime (tranx time),
Can I pass datetime (tranx time) as an "array argument" to my function ? If possible let me know
Waiting for your reply