Code: Select all
namespace PowerLanguage
{
namespace Function
{
public class ProvaCurrentBar2 : FunctionSimple<int>
{
public ProvaCurrentBar2(CStudyControl master) : base(master){}
public int gary;
protected override int CalcBar(){
gary=4;
}
protected override void Create(){
m_current_bar = new VariableObject<int>(this);
}
}
}
}
Code: Select all
namespace PowerLanguage.Indicator{
public class Prova_ : IndicatorObject {
public Prova_(object _ctx):base(_ctx){}
private IPlotObject plot1;
private Function.ProvaCurrentBar2 Contabar;
protected override void Create() {
Contabar = new Function.ProvaCurrentBar2(this);
protected override void CalcBar(){
Output.WriteLine("Gary " + Contabar.gary);
}
}
}
gary0
gary0
(i don't want use Return because in a future i must return more value..not one)
Why Not display gary4?
Thank you for help me