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
protectedoverridevoidInitialize()
1818
{
19-
vargrid=newGrid(16,2)
19+
vargrid=newGrid(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(newTextBlock
34+
grid.AddChild(newTextBlock
3535
{
3636
Text="Account Info",
3737
Style=style,
3838
HorizontalAlignment=HorizontalAlignment.Center
3939
},0,0,1,2);
4040

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

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

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

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

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

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

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

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

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

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

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

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

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

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

195-
grid.AddChild(newTextBlock
195+
grid.AddChild(newTextBlock
196196
{
197197
Text="User Id",
198198
Style=style
199199
},15,0);
200-
grid.AddChild(newTextBlock
200+
grid.AddChild(newTextBlock
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
vartext=string.Format("Account Type:{0}",Account.AccountType);
2020

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

2525
publicoverridevoidCalculate(intindex)

‎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
privatevoidDrawApplicationInfo()
4444
{
45-
vargrid=newGrid(3,2)
45+
vargrid=newGrid(3,2)
4646
{
4747
BackgroundColor=Color.Goldenrod,
4848
HorizontalAlignment=HorizontalAlignment,
4949
VerticalAlignment=VerticalAlignment
5050
};
5151

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

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

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

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

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

83-
_userTimeOffsetTextBlock=newTextBlock
83+
_userTimeOffsetTextBlock=newTextBlock
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-
vargrid=newGrid(2,2)
36+
vargrid=newGrid(2,2)
3737
{
3838
BackgroundColor=Color.DarkGoldenrod,
3939
HorizontalAlignment=HorizontalAlignment.Right,
4040
VerticalAlignment=VerticalAlignment.Top,
4141
Opacity=0.5
4242
};
4343

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

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

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

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

64-
_barsStateTextBlock=newTextBlock
64+
_barsStateTextBlock=newTextBlock
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)