See the attached code sample and the attached image. I have tried numerous fields: Name, ID, Equity, etc. Nothing is returned.
I have also tried TradeProfiles but cannot seem to get the syntax correct. I have tried a few variations based on snippets here on the forum but have not gotten it to work.
Direction on how to get Account equity, balance, name, etc very much appreciated.
Code: Select all
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.TradeManager;
using PowerLanguage.Function;
namespace PowerLanguage.Indicator{
public class test4 : IndicatorObject {
public test4(object _ctx):base(_ctx){}
private Account account;
protected override void Create() {
}
protected override void StartCalc() {
Output.Clear();
}
protected override void CalcBar(){
Output.WriteLine("Account info: {0}", account.Equity);
}
}