Replies

skalkas
09 Jul 2018, 16:30

I see, that was the problem. Thank you very much.


@skalkas

skalkas
09 Jul 2018, 15:44

Hello Andrey,

thank you...this one works as a pront log, but what Iam trying is to fill with those two values some variables....something like this, but it creates an error...and I dont now whats wrong:

var lastTrade = History.LastOrDefault();
if (lastTrade != null)
{
    Print("Last trade {0} {1}, profit: {2}", lastTrade.TradeType, lastTrade.SymbolCode, lastTrade.NetProfit);
}
 
var netpprofit = lastTrade.NetProfit;
var tradetype = lastTrade.TradeType;

@skalkas