The Send Mail function works when I use this construct:
SendMail("[email protected]", "[email protected]", " PnL Notice", "Variable")
What I get in the message is the word variable, but that tells me that the messaging is working but my conversion to get the variable value doesn't work. I've tried several different ways, but right now this is what I am using:
protected override void Initialize()
{
SendPnL = new StringSeries(this);
}
protected override void OnBarUpdate()
{
Variable0 = Performance.AllTrades.TradesPerformance.Currency.CumProfit;
real_pnl = Variable0;
SendPnL.Set(Variable0.ToString());
// Messaging and Notifications
if (Performance.AllTrades.TradesPerformance.Currency.CumProfit > real_pnl
+ PnL_Check
|| Performance.AllTrades.TradesPerformance.Currency.CumProfit < real_pnl
- PnL_Check)
{
real_pnl =performance.AllTrades.TradesPerformance.Currency.CumProfit;
SendMail("[email protected]", "[email protected]", " PnL
Notice",Variable0.ToString());
message using, "Variable0.ToString()). But it doesn't work. How do I convert realized profit into a text value I can send to my phone as an e-mail message?
Thanks
DaveN

Comment