Empty4 v600 for Coders

sheriffonline
Posts: 6
Joined: Fri Aug 28, 2015 8:09 pm

Empty4 v600 for Coders

Post by sheriffonline »

warning: implicit conversion from 'number' to 'string'

Code: Select all

SendNotification("BTF Alert >>"+TimeToStr(TimeCurrent())+Symbol()+ OrderType()+" Closed "+OrderLots() +"@ Price "+ OrderClosePrice() +"on "+ OrderCloseTime()+ "Profit is"+OrderProfit());
what could be the issue?
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Empty4 v600 for Coders

Post by milanese »

sheriffonline » Fri Sep 25, 2015 1:15 pm wrote:warning: implicit conversion from 'number' to 'string'

Code: Select all

SendNotification("BTF Alert >>"+TimeToStr(TimeCurrent())+Symbol()+ OrderType()+" Closed "+OrderLots() +"@ Price "+ OrderClosePrice() +"on "+ OrderCloseTime()+ "Profit is"+OrderProfit());
what could be the issue?
You should use it in that way for avoiding the alerts

Code: Select all

SendNotification("BTF Alert >>"+TimeToStr(TimeCurrent())+Symbol()+ IntegerToString(OrderType())+" Closed "+IntegerToString(OrderLots()) +"@ Price "+ DoubleToStr(OrderClosePrice(),Digits) +"on "+ OrderCloseTime()+ "Profit is"+DoubleToStr(OrderProfit(),Digits));
you can read more there ---> https://www.mql5.com/en/articles/1391#compiler_warnings
Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Post Reply

Return to “Coders Hangout”