I hope that I will not be considered presumptuous for asking so many questions but this is my introductory meeting with the Strategy Wizard and I don’t know where else to find these answers. I am very appreciative for the help Ninja makes available and I thank you all for that.
I printed out the Strategy Wizard code which comprised three pages of familiar-looking code, followed by over twenty pages of green-colored code under the heading of “Region: Wizard settings, neither change nor remove”
1-What is the meaning of green-colored code?
2-What is the meaning of “Wizard settings”?
In the first two pages of code, there is Region called Variables. Following are a list of variables which I had entered into the Wizard as “Inputs”. In C# are Inputs called Variables?
After the close of the Variables Region, there is a section preceded by this sentence:
Protected override void Initialize.
To me, this means this section is initializing Variables. However the section comprises eight lines of code repeating this line: “Add(LinReg(Close , 34));
3-Why is this line repeated eight times and why is the other Variable in the Easy Language code not initialized? (My Easy Language code declared two variables: LinReg and LinRegDelta.)
4-What does “Override” mean?
After
Condition Set 1, which reads: (Position.Market Position ==MarketPosition.Flat && LinReg(Close, 34) [0] < LinReg(Close, 34)[LinRegLB]) followed by:
EnterLong(100000, “B.pp”) ;
5-Should there have been an indication of the instrument, such as
“Instrument.Fullname”?
6-Is this Strategy associated with a particular chart, as in Easy Language? If so, how is the code connected to a specific chart?
In Condition Set 3, (the same type of condition as in Set 1, but for a Long position), the code shows:
Position.MarketPosition == MarketPosition.Long && LinReg(Close, 34) + 0.0018
< LinReg(Close, 34) [LinRegLB] + 0.0018)
This code seems garbled to me. The 0.0018 is the value of the Input (Variable?) called “Buffer”.
7-Shouldn’t the code show “Buffer” (Buffer is an Input (Variable) instead of
0.0018?
Also, in Condition Set 4, there is this action line:
ExitShort(“100000, CS.pp”, “ “) ;
8-Shouldn’t the code read: “ExitShort(100000, “CS.pp”, “ “) ;
9-What does the “ “ mean in that code?
In Condition Set 5:, if (Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) >= MaxPosProfit
Exit Long(“100000, CS.pp”, “ “) ;
10-What is the difference between PositionGetProfitLoss and Unrealized?
11- What does “PerformanceUnitCurrency” mean?
12-How do I know whether this code has been compiled? If not, how do I compile and will the compiler correct the above errors?
13-Is all the code in this Namespace called an Assembly? If not, what is an Assembly?

Comment