stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Empty4 v600 for Coders
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3439
Page 5 of 5
Author:  sheriffonline [ Fri Sep 25, 2015 1:15 pm ]
Post subject:  Empty4 v600 for Coders

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?
Author:  milanese [ Fri Sep 25, 2015 2:02 pm ]
Post subject:  Empty4 v600 for Coders

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
All times are UTC Page 5 of 5