Apprentice wrote:In my example you would have something traba this line.
strategy.parameters: add ("Price");
strategy.parameters: addString ("Type", "Price Type", "", "Bid");
strategy.parameters: addStringAlternative ("Type", "Bid", "", "Bid");
strategy.parameters: addStringAlternative ("Type", "Ask", "", "Ask");
Each code is unique.
You can not compare the variables of the same name in different code examples.
I know this. I have no idea why you keep making these misunderstandings. Have you looked at the code for Breakout Strategy? That's the code I'm talking about, no other code.
If you look at the code (Breakout_Strategy.lua) you will see:
- Code: Select all
...
strategy.parameters:addString("Type", "The time type", "", "TD");
strategy.parameters:addStringAlternative("Type", "Local Time", "", "LT");
strategy.parameters:addStringAlternative("Type", "EST Time", "", "EST");
strategy.parameters:addStringAlternative("Type", "GMT Time", "", "GMT");
strategy.parameters:addStringAlternative("Type", "Trading Day time", "", "TD");
...
gSource = ExtSubscribe(2, nil, instance.parameters.TF, instance.parameters.Type == "Bid", "bar");
...
I don't understand how I can be more clear about my point.