- Code: Select all
gSource = ExtSubscribe(2, nil, instance.parameters.TF, instance.parameters.Type == "Bid", "close");
What i would like to do is, if it's 15:27 and i'm in the "m15" chart, i would like to get the information of the 14:45 to 15:00 candle and the 15:00 to 15:15 candle (that means candles -1 and -2 assuming that current candle is 0)
2. I see some people use different functions to load the information of the chart. Can someone explain me the difference between this 2 approaches:
- Code: Select all
a. gSource = core.host:execute("getHistory", id, instance.bid:instrument(), instance.parameters.TF, 0, 0, instance.parameters.Type == "Bid");
b. gSource = ExtSubscribe(2, nil, instance.parameters.TF, instance.parameters.Type == "Bid", "close");
Why some strategies use one or the other?
3. (Last one) it would be nice if the forum would move to the front page the current active topics. For example if someone posts a question about one of the indicators, it would be instantly moved t the first page.