Skip to content

Commit 400565c

Browse files
Merge pull request spotware#26 from spotware/am/XT-15990
XT-15990 Rename Automate to Algo in all samples.
2 parents e6e500c + 0459e42 commit 400565c

File tree

242 files changed

+914
-913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+914
-913
lines changed

Indicators/Access Right Sample/Access Right Sample/Access Right Sample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.

Indicators/Account Sample/Account Sample/Account Sample.cs

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.
@@ -16,7 +16,7 @@ public class AccountSample : Indicator
1616
{
1717
protected override void Initialize()
1818
{
19-
var grid = new Grid(16, 2)
19+
var grid = new Grid(16, 2)
2020
{
2121
BackgroundColor = Color.Gold,
2222
Opacity = 0.6,
@@ -31,173 +31,173 @@ protected override void Initialize()
3131
style.Set(ControlProperty.FontWeight, FontWeight.ExtraBold);
3232
style.Set(ControlProperty.BackgroundColor, Color.Black);
3333

34-
grid.AddChild(new TextBlock
34+
grid.AddChild(new TextBlock
3535
{
3636
Text = "Account Info",
3737
Style = style,
3838
HorizontalAlignment = HorizontalAlignment.Center
3939
}, 0, 0, 1, 2);
4040

41-
grid.AddChild(new TextBlock
41+
grid.AddChild(new TextBlock
4242
{
4343
Text = "Type",
4444
Style = style
4545
}, 1, 0);
46-
grid.AddChild(new TextBlock
46+
grid.AddChild(new TextBlock
4747
{
4848
Text = Account.AccountType.ToString(),
4949
Style = style
5050
}, 1, 1);
5151

52-
grid.AddChild(new TextBlock
52+
grid.AddChild(new TextBlock
5353
{
5454
Text = "Is Live",
5555
Style = style
5656
}, 2, 0);
57-
grid.AddChild(new TextBlock
57+
grid.AddChild(new TextBlock
5858
{
5959
Text = Account.IsLive.ToString(),
6060
Style = style
6161
}, 2, 1);
6262

63-
grid.AddChild(new TextBlock
63+
grid.AddChild(new TextBlock
6464
{
6565
Text = "Balance",
6666
Style = style
6767
}, 3, 0);
68-
grid.AddChild(new TextBlock
68+
grid.AddChild(new TextBlock
6969
{
7070
Text = Account.Balance.ToString(),
7171
Style = style
7272
}, 3, 1);
7373

74-
grid.AddChild(new TextBlock
74+
grid.AddChild(new TextBlock
7575
{
7676
Text = "Broker Name",
7777
Style = style
7878
}, 4, 0);
79-
grid.AddChild(new TextBlock
79+
grid.AddChild(new TextBlock
8080
{
8181
Text = Account.BrokerName,
8282
Style = style
8383
}, 4, 1);
8484

85-
grid.AddChild(new TextBlock
85+
grid.AddChild(new TextBlock
8686
{
8787
Text = "Currency",
8888
Style = style
8989
}, 5, 0);
90-
grid.AddChild(new TextBlock
90+
grid.AddChild(new TextBlock
9191
{
9292
Text = Account.Asset.Name,
9393
Style = style
9494
}, 5, 1);
9595

96-
grid.AddChild(new TextBlock
96+
grid.AddChild(new TextBlock
9797
{
9898
Text = "Number",
9999
Style = style
100100
}, 6, 0);
101-
grid.AddChild(new TextBlock
101+
grid.AddChild(new TextBlock
102102
{
103103
Text = Account.Number.ToString(),
104104
Style = style
105105
}, 6, 1);
106106

107-
grid.AddChild(new TextBlock
107+
grid.AddChild(new TextBlock
108108
{
109109
Text = "Equity",
110110
Style = style
111111
}, 7, 0);
112-
grid.AddChild(new TextBlock
112+
grid.AddChild(new TextBlock
113113
{
114114
Text = Account.Equity.ToString(),
115115
Style = style
116116
}, 7, 1);
117117

118-
grid.AddChild(new TextBlock
118+
grid.AddChild(new TextBlock
119119
{
120120
Text = "Free Margin",
121121
Style = style
122122
}, 8, 0);
123-
grid.AddChild(new TextBlock
123+
grid.AddChild(new TextBlock
124124
{
125125
Text = Account.FreeMargin.ToString(),
126126
Style = style
127127
}, 8, 1);
128128

129-
grid.AddChild(new TextBlock
129+
grid.AddChild(new TextBlock
130130
{
131131
Text = "Margin",
132132
Style = style
133133
}, 9, 0);
134-
grid.AddChild(new TextBlock
134+
grid.AddChild(new TextBlock
135135
{
136136
Text = Account.Margin.ToString(),
137137
Style = style
138138
}, 9, 1);
139139

140-
grid.AddChild(new TextBlock
140+
grid.AddChild(new TextBlock
141141
{
142142
Text = "Margin Level",
143143
Style = style
144144
}, 10, 0);
145-
grid.AddChild(new TextBlock
145+
grid.AddChild(new TextBlock
146146
{
147147
Text = Account.MarginLevel.ToString(),
148148
Style = style
149149
}, 10, 1);
150150

151-
grid.AddChild(new TextBlock
151+
grid.AddChild(new TextBlock
152152
{
153153
Text = "Precise Leverage",
154154
Style = style
155155
}, 11, 0);
156-
grid.AddChild(new TextBlock
156+
grid.AddChild(new TextBlock
157157
{
158158
Text = Account.PreciseLeverage.ToString(),
159159
Style = style
160160
}, 11, 1);
161161

162-
grid.AddChild(new TextBlock
162+
grid.AddChild(new TextBlock
163163
{
164164
Text = "Stop Out Level",
165165
Style = style
166166
}, 12, 0);
167-
grid.AddChild(new TextBlock
167+
grid.AddChild(new TextBlock
168168
{
169169
Text = Account.StopOutLevel.ToString(),
170170
Style = style
171171
}, 12, 1);
172172

173-
grid.AddChild(new TextBlock
173+
grid.AddChild(new TextBlock
174174
{
175175
Text = "Unrealized Gross Profit",
176176
Style = style
177177
}, 13, 0);
178-
grid.AddChild(new TextBlock
178+
grid.AddChild(new TextBlock
179179
{
180180
Text = Account.UnrealizedGrossProfit.ToString(),
181181
Style = style
182182
}, 13, 1);
183183

184-
grid.AddChild(new TextBlock
184+
grid.AddChild(new TextBlock
185185
{
186186
Text = "Unrealized Net Profit",
187187
Style = style
188188
}, 14, 0);
189-
grid.AddChild(new TextBlock
189+
grid.AddChild(new TextBlock
190190
{
191191
Text = Account.UnrealizedNetProfit.ToString(),
192192
Style = style
193193
}, 14, 1);
194194

195-
grid.AddChild(new TextBlock
195+
grid.AddChild(new TextBlock
196196
{
197197
Text = "User Id",
198198
Style = style
199199
}, 15, 0);
200-
grid.AddChild(new TextBlock
200+
grid.AddChild(new TextBlock
201201
{
202202
Text = Account.UserId.ToString(),
203203
Style = style

Indicators/AccountType Sample/AccountType Sample/AccountType Sample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.
@@ -19,7 +19,7 @@ protected override void Initialize()
1919
var text = string.Format("Account Type: {0}", Account.AccountType);
2020

2121
Chart.DrawStaticText("text", text, VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
22-
22+
2323
}
2424

2525
public override void Calculate(int index)

Indicators/Andrews Pitchfork Sample/Andrews Pitchfork Sample/Andrews Pitchfork Sample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.

Indicators/Application Sample/Application Sample/Application Sample.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.
@@ -42,45 +42,45 @@ private void Application_ColorThemeChanged(ColorThemeChangeEventArgs obj)
4242

4343
private void DrawApplicationInfo()
4444
{
45-
var grid = new Grid(3, 2)
45+
var grid = new Grid(3, 2)
4646
{
4747
BackgroundColor = Color.Goldenrod,
4848
HorizontalAlignment = HorizontalAlignment,
4949
VerticalAlignment = VerticalAlignment
5050
};
5151

52-
grid.AddChild(new TextBlock
52+
grid.AddChild(new TextBlock
5353
{
5454
Text = "Version",
5555
Margin = 5
5656
}, 0, 0);
57-
grid.AddChild(new TextBlock
57+
grid.AddChild(new TextBlock
5858
{
5959
Text = Application.Version.ToString(),
6060
Margin = 5
6161
}, 0, 1);
6262

63-
grid.AddChild(new TextBlock
63+
grid.AddChild(new TextBlock
6464
{
6565
Text = "Theme",
6666
Margin = 5
6767
}, 1, 0);
6868

69-
_themeTextBlock = new TextBlock
69+
_themeTextBlock = new TextBlock
7070
{
7171
Text = Application.ColorTheme.ToString(),
7272
Margin = 5
7373
};
7474

7575
grid.AddChild(_themeTextBlock, 1, 1);
7676

77-
grid.AddChild(new TextBlock
77+
grid.AddChild(new TextBlock
7878
{
7979
Text = "User Time Offset",
8080
Margin = 5
8181
}, 2, 0);
8282

83-
_userTimeOffsetTextBlock = new TextBlock
83+
_userTimeOffsetTextBlock = new TextBlock
8484
{
8585
Text = Application.UserTimeOffset.ToString(),
8686
Margin = 5

Indicators/Bar Sample/Bar Sample/Bar Sample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.

Indicators/BarOpenedEventArgs Sample/BarOpenedEventArgs Sample/BarOpenedEventArgs Sample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.

Indicators/Bars Sample/Bars Sample/Bars Sample.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.
@@ -33,35 +33,35 @@ protected override void Initialize()
3333

3434
Bars.Reloaded += Bars_Reloaded;
3535

36-
var grid = new Grid(2, 2)
36+
var grid = new Grid(2, 2)
3737
{
3838
BackgroundColor = Color.DarkGoldenrod,
3939
HorizontalAlignment = HorizontalAlignment.Right,
4040
VerticalAlignment = VerticalAlignment.Top,
4141
Opacity = 0.5
4242
};
4343

44-
grid.AddChild(new TextBlock
44+
grid.AddChild(new TextBlock
4545
{
4646
Text = "Bar Ticks #",
4747
Margin = 5
4848
}, 0, 0);
4949

50-
_barTicksNumberTextBlock = new TextBlock
50+
_barTicksNumberTextBlock = new TextBlock
5151
{
5252
Text = "0",
5353
Margin = 5
5454
};
5555

5656
grid.AddChild(_barTicksNumberTextBlock, 0, 1);
5757

58-
grid.AddChild(new TextBlock
58+
grid.AddChild(new TextBlock
5959
{
6060
Text = "Bars State",
6161
Margin = 5
6262
}, 1, 0);
6363

64-
_barsStateTextBlock = new TextBlock
64+
_barsStateTextBlock = new TextBlock
6565
{
6666
Margin = 5
6767
};

Indicators/BarsTickEventArgs Sample/BarsTickEventArgs Sample/BarsTickEventArgs Sample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.

Indicators/Bollinger Bands MTF Cloud Sample/Bollinger Bands MTF Cloud Sample/Bollinger Bands MTF Cloud Sample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -------------------------------------------------------------------------------------------------
22
//
3-
// This code is a cTrader Automate API example.
3+
// This code is a cTrader Algo API example.
44
//
55
// This Indicator is intended to be used as a sample and does not guarantee any particular outcome or
66
// profit of any kind. Use it at your own risk.

0 commit comments

Comments
 (0)