Someone please shed some light on this seemingly simple subject for me.
I have been programming in MQL4 for a while and understand it well... so the migration to Ninja is quite easy so far....... except for one thing.
In , MQL4 if you want a user defined vaiable all you do is put an "extern" infrom of your variable.... then its done.
The "extern" seems to be replaced to "public" in ninja... but when i put public in front it doesnt show up as definable when backtesting the strategy......
So in looking at a few codes i find this works
[Description("")]
[Category("Parameters")]
public bool JustEntered
{
get { return justEntered; }
set { justEntered = value; }
}
Is that much code really needed to do the same thing as this "extern bool JustEntered"?
Could it be that complex or am i missing something........ can someone please explain what all the "get" and "set" stuff is.
any help great appreciated.... thanks in advance.

Comment