I have added second time frame to my strategy - so called Strategic Time Frame. It can be minute TF or day TF. Please find below some code to illustrate this.
private bool tF_D = true; private int tF_strategic = 5; ... // TF dla decyzji strategicznej - BarsArray[1] if (tF_D) {Add(PeriodType.Day, tF_strategic);} if (!tF_D) {Add(PeriodType.Minute, tF_strategic);} ... [Description("Okres dla TF strategiczny")] [GridCategory("Parametry - Ogolne")] [Gui.Design.DisplayName ("\t\t\tTF strategiczny")] public int TF_strategic { get { return tF_strategic; } set { tF_strategic = Math.Max(1, value); } }
Examle: if I choose 240 minutes in Data series I shall be unable to set strategic timeframe to less than 240 minutes.
I assume that I have to change 1 to something else that represent chosen data series.
Please support.
Comment