-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathDomdicator_Staging2.cs
More file actions
644 lines (560 loc) · 27 KB
/
Domdicator_Staging2.cs
File metadata and controls
644 lines (560 loc) · 27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
#region Using declarations
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Windows;
using System.Windows.Media;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Gui;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Gui.SuperDom;
using NinjaTrader.Gui.Tools;
using NinjaTrader.Data;
using NinjaTrader.NinjaScript;
using NinjaTrader.Core.FloatingPoint;
using NinjaTrader.NinjaScript.DrawingTools;
using System.Linq;
#endregion
namespace NinjaTrader.NinjaScript.Indicators.Staging
{
public class Domdicator_Staging2 : Indicator
{
#region Variables
private readonly object orderLock = new object();
private Dictionary<double, OrderInfo> renderBidOrders = new Dictionary<double, OrderInfo>();
private Dictionary<double, OrderInfo> renderAskOrders = new Dictionary<double, OrderInfo>();
private Dictionary<double, long> volumesByPriceRange = new Dictionary<double, long>();
private int priceRangeTicks = 5;
private int volumeThresholdPercent = 20;
private float historicalOpacity = 0.6f;
private int marginRight = 300;
private int maxRightExtension = 225;
private float maxTextSize = 28;
private float minTextSize = 14;
private Brush bidBrush;
private Brush askBrush;
private Brush textBrush;
private long maxVolume = 0;
private BarAlignment alignment = BarAlignment.Right;
private double currentBidPrice;
private double currentAskPrice;
#endregion
#region Properties
[NinjaScriptProperty]
[Range(200, 600)]
[Display(Name = "DOM Panel Width", Description = "Width in pixels of the DOM visualization panel on the right side of the chart", Order = 1, GroupName = "Visual Settings")]
public int MarginRight
{
get { return marginRight; }
set { marginRight = value; }
}
[NinjaScriptProperty]
[Range(50, 400)]
[Display(Name = "Maximum Bar Width", Description = "Maximum width in pixels that volume bars can extend from the right side", Order = 2, GroupName = "Visual Settings")]
public int MaxRightExtension
{
get { return maxRightExtension; }
set { maxRightExtension = value; }
}
[NinjaScriptProperty]
[Range(8, 24)]
[Display(Name = "Volume Text Max Size", Description = "Maximum font size for volume numbers (used for largest volumes)", Order = 3, GroupName = "Visual Settings")]
public float MaxTextSize
{
get { return maxTextSize; }
set { maxTextSize = value; }
}
[NinjaScriptProperty]
[Range(6, 16)]
[Display(Name = "Volume Text Min Size", Description = "Minimum font size for volume numbers (used for smallest volumes)", Order = 4, GroupName = "Visual Settings")]
public float MinTextSize
{
get { return minTextSize; }
set { minTextSize = value; }
}
[NinjaScriptProperty]
[Display(Name = "Show Volume Numbers", Description = "Display numerical volume values next to the bars", Order = 5, GroupName = "Visual Settings")]
public bool ShowVolumeText
{ get; set; }
[NinjaScriptProperty]
[Range(1, 20)]
[Display(Name = "Price Level Group Size", Description = "Number of price ticks to group together when displaying volume text (higher values reduce text overlap)", Order = 6, GroupName = "Visual Settings")]
public int PriceRangeTicks
{
get { return priceRangeTicks; }
set { priceRangeTicks = Math.Max(1, Math.Min(20, value)); }
}
[NinjaScriptProperty]
[Range(1, 100)]
[Display(Name = "Volume Display Threshold", Description = "Only show volumes that are above this percentage of the maximum volume (reduces visual clutter)", Order = 7, GroupName = "Visual Settings")]
public int VolumeThresholdPercent
{
get { return volumeThresholdPercent; }
set { volumeThresholdPercent = Math.Max(1, Math.Min(100, value)); }
}
[NinjaScriptProperty]
[Range(10, 90)]
[Display(Name = "Historical Orders Opacity", Description = "Opacity percentage for orders away from the current bid/ask price (lower values make historical orders more transparent)", Order = 8, GroupName = "Visual Settings")]
public float HistoricalOpacity
{
get { return historicalOpacity * 100; }
set { historicalOpacity = Math.Max(0.1f, Math.Min(0.9f, value / 100f)); }
}
[XmlIgnore]
[Display(Name = "Bid Volume Color", Description = "Color used for bid volume bars", Order = 9, GroupName = "Visual Settings")]
public Brush BidBrush
{
get { return bidBrush; }
set { bidBrush = value; }
}
[Browsable(false)]
public string BidBrushSerializable
{
get { return Serialize.BrushToString(bidBrush); }
set { bidBrush = Serialize.StringToBrush(value); }
}
[XmlIgnore]
[Display(Name = "Ask Volume Color", Description = "Color used for ask volume bars", Order = 10, GroupName = "Visual Settings")]
public Brush AskBrush
{
get { return askBrush; }
set { askBrush = value; }
}
[Browsable(false)]
public string AskBrushSerializable
{
get { return Serialize.BrushToString(askBrush); }
set { askBrush = Serialize.StringToBrush(value); }
}
[XmlIgnore]
[Display(Name = "Volume Text Color", Description = "Color used for volume numbers", Order = 11, GroupName = "Visual Settings")]
public Brush TextBrush
{
get { return textBrush; }
set { textBrush = value; }
}
[Browsable(false)]
public string TextBrushSerializable
{
get { return Serialize.BrushToString(textBrush); }
set { textBrush = Serialize.StringToBrush(value); }
}
[NinjaScriptProperty]
[Display(Name = "Volume Bar Alignment", Description = "Align volume bars to the left, right, or center of the DOM panel", Order = 12, GroupName = "Visual Settings")]
public BarAlignment Alignment
{
get { return alignment; }
set { alignment = value; }
}
#endregion
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = "DOM visualization indicator with relative sizing (Staging2 Version)";
Name = "Domdicator_Staging2";
Calculate = Calculate.OnEachTick;
IsOverlay = true;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
IsSuspendedWhileInactive = false;
ShowVolumeText = true;
MarginRight = 300;
MaxRightExtension = 150;
MaxTextSize = 14;
MinTextSize = 10;
PriceRangeTicks = 10;
VolumeThresholdPercent = 60;
HistoricalOpacity = 90;
BidBrush = Brushes.Red;
AskBrush = Brushes.LawnGreen;
TextBrush = Brushes.White;
Alignment = BarAlignment.Right;
currentBidPrice = double.MinValue;
currentAskPrice = double.MaxValue;
}
else if (State == State.Configure)
{
if (ChartControl != null)
ChartControl.Properties.BarMarginRight = marginRight;
}
}
protected override void OnBarUpdate()
{
ForceRefresh();
}
protected override void OnMarketDepth(MarketDepthEventArgs marketDepthUpdate)
{
lock (orderLock)
{
if (marketDepthUpdate.Operation == Operation.Remove || marketDepthUpdate.Volume <= 0)
{
if (marketDepthUpdate.MarketDataType == MarketDataType.Ask)
renderAskOrders.Remove(marketDepthUpdate.Price);
else if (marketDepthUpdate.MarketDataType == MarketDataType.Bid)
renderBidOrders.Remove(marketDepthUpdate.Price);
}
else if (marketDepthUpdate.Operation == Operation.Add || marketDepthUpdate.Operation == Operation.Update)
{
var orderInfo = new OrderInfo
{
Price = marketDepthUpdate.Price,
Volume = marketDepthUpdate.Volume,
Time = marketDepthUpdate.Time,
IsHistorical = marketDepthUpdate.MarketDataType == MarketDataType.Ask ?
(currentAskPrice != double.MaxValue && marketDepthUpdate.Price > currentAskPrice) :
(currentBidPrice != double.MinValue && marketDepthUpdate.Price < currentBidPrice)
};
if (marketDepthUpdate.MarketDataType == MarketDataType.Ask)
renderAskOrders[marketDepthUpdate.Price] = orderInfo;
else if (marketDepthUpdate.MarketDataType == MarketDataType.Bid)
renderBidOrders[marketDepthUpdate.Price] = orderInfo;
}
UpdateRenderCollections();
}
ForceRefresh();
}
protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
{
bool priceChanged = false;
double oldBid = currentBidPrice;
double oldAsk = currentAskPrice;
if (marketDataUpdate.MarketDataType == MarketDataType.Bid && currentBidPrice != marketDataUpdate.Price)
{
currentBidPrice = marketDataUpdate.Price;
priceChanged = true;
}
else if (marketDataUpdate.MarketDataType == MarketDataType.Ask && currentAskPrice != marketDataUpdate.Price)
{
currentAskPrice = marketDataUpdate.Price;
priceChanged = true;
}
if (priceChanged)
{
lock (orderLock)
{
double safeBid = currentBidPrice;
double safeAsk = currentAskPrice;
List<double> invalidKeys = renderBidOrders
.Where(o => safeBid != double.MinValue && o.Key > safeBid)
.Select(o => o.Key)
.ToList();
foreach (double key in invalidKeys)
renderBidOrders.Remove(key);
invalidKeys = renderAskOrders
.Where(o => safeAsk != double.MaxValue && o.Key < safeAsk)
.Select(o => o.Key)
.ToList();
foreach (double key in invalidKeys)
renderAskOrders.Remove(key);
List<double> bidKeys = renderBidOrders.Keys.ToList();
foreach (var key in bidKeys)
{
var order = renderBidOrders[key];
order.IsHistorical = (key < safeBid);
renderBidOrders[key] = order;
}
List<double> askKeys = renderAskOrders.Keys.ToList();
foreach (var key in askKeys)
{
var order = renderAskOrders[key];
order.IsHistorical = (key > safeAsk);
renderAskOrders[key] = order;
}
UpdateRenderCollections();
}
try
{
ForceRefresh();
}
catch (Exception)
{
// Ignore refresh exceptions
}
}
}
private void UpdateRenderCollections()
{
lock (orderLock)
{
if (renderBidOrders == null)
renderBidOrders = new Dictionary<double, OrderInfo>();
if (renderAskOrders == null)
renderAskOrders = new Dictionary<double, OrderInfo>();
// Collect all volumes first
var bidVolumes = new Dictionary<double, long>();
var askVolumes = new Dictionary<double, long>();
foreach (var kvp in renderBidOrders)
{
if (kvp.Value.Volume > 0)
{
bidVolumes[kvp.Key] = kvp.Value.Volume;
}
}
foreach (var kvp in renderAskOrders)
{
if (kvp.Value.Volume > 0)
{
askVolumes[kvp.Key] = kvp.Value.Volume;
}
}
if (bidVolumes.Count > 0 && askVolumes.Count > 0)
{
maxVolume = Math.Max(bidVolumes.Values.Max(), askVolumes.Values.Max());
}
else if (bidVolumes.Count > 0)
{
maxVolume = bidVolumes.Values.Max();
}
else if (askVolumes.Count > 0)
{
maxVolume = askVolumes.Values.Max();
}
}
}
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
if (ChartControl == null || ChartBars == null || BidBrush == null || AskBrush == null)
return;
volumesByPriceRange.Clear();
Dictionary<double, OrderInfo> threadSafeBidOrders;
Dictionary<double, OrderInfo> threadSafeAskOrders;
long currentMaxVolume;
lock (orderLock)
{
threadSafeBidOrders = new Dictionary<double, OrderInfo>(renderBidOrders);
threadSafeAskOrders = new Dictionary<double, OrderInfo>(renderAskOrders);
currentMaxVolume = maxVolume;
}
if (currentMaxVolume == 0)
return;
ChartControl.Properties.BarMarginRight = marginRight;
double tickSize = Instrument.MasterInstrument.TickSize;
double visibleHigh = chartScale.MaxValue;
double visibleLow = chartScale.MinValue;
double visibleRange = visibleHigh - visibleLow;
if (visibleRange <= 0 || Double.IsInfinity(visibleRange))
return;
float pixelsPerPrice = (float)ChartPanel.H / (float)visibleRange;
float pixelsPerTick = pixelsPerPrice * (float)tickSize;
float barHeight = Math.Max(2.0f, Math.Min(pixelsPerTick * 0.9f, 20.0f));
var dxBrushBid = ((SolidColorBrush)BidBrush).ToDxBrush(RenderTarget) as SharpDX.Direct2D1.SolidColorBrush;
var dxBrushAsk = ((SolidColorBrush)AskBrush).ToDxBrush(RenderTarget) as SharpDX.Direct2D1.SolidColorBrush;
var dxBrushText = ((SolidColorBrush)TextBrush).ToDxBrush(RenderTarget) as SharpDX.Direct2D1.SolidColorBrush;
if (dxBrushBid == null || dxBrushAsk == null || dxBrushText == null)
return;
try
{
// Sort orders by volume
var sortedAsks = threadSafeAskOrders
.OrderByDescending(x => x.Value.Volume)
.ToList();
var sortedBids = threadSafeBidOrders
.OrderByDescending(x => x.Value.Volume)
.ToList();
// Render asks
foreach (var ask in sortedAsks)
{
if (ask.Value.Volume <= 0 || ask.Key < visibleLow || ask.Key > visibleHigh ||
(currentAskPrice != double.MaxValue && ask.Key < currentAskPrice))
continue;
RenderDOMBar(ask.Key, ask.Value.Volume, false, currentMaxVolume, barHeight, chartScale, dxBrushAsk, dxBrushText, tickSize);
}
// Render bids
foreach (var bid in sortedBids)
{
if (bid.Value.Volume <= 0 || bid.Key < visibleLow || bid.Key > visibleHigh ||
(currentBidPrice != double.MinValue && bid.Key > currentBidPrice))
continue;
RenderDOMBar(bid.Key, bid.Value.Volume, true, currentMaxVolume, barHeight, chartScale, dxBrushBid, dxBrushText, tickSize);
}
}
finally
{
dxBrushBid.Dispose();
dxBrushAsk.Dispose();
dxBrushText.Dispose();
}
}
private void RenderDOMBar(double price, long volume, bool isBid, long maxVolume, float barHeight,
ChartScale chartScale, SharpDX.Direct2D1.SolidColorBrush brush, SharpDX.Direct2D1.SolidColorBrush textBrush,
double tickSize)
{
float y = chartScale.GetYByValue(price);
if (y < 0 || y > ChartPanel.H)
return;
// Calculate distance from current price
double referencePrice = isBid ? currentBidPrice : currentAskPrice;
double priceDistance = Math.Abs(price - referencePrice);
int ticksAway = (int)(priceDistance / tickSize);
float baseOpacity = 0.8f;
float minOpacity = 0.15f;
float distanceOpacity = baseOpacity;
// Keep full opacity for first 40 ticks, then linear falloff
if (ticksAway > 40)
{
// Linear decay over the next 80 ticks
float fadeRange = 80f;
distanceOpacity = baseOpacity * Math.Max(0, 1 - (ticksAway - 40) / fadeRange);
}
// If historical, further reduce opacity
if (isBid ? (price < currentBidPrice) : (price > currentAskPrice))
{
distanceOpacity *= historicalOpacity;
}
// Ensure minimum opacity
distanceOpacity = Math.Max(minOpacity, distanceOpacity);
// Calculate volume ratio
float volumeRatio = (float)volume / (float)maxVolume;
// Calculate bar width and position
float barWidth = Math.Min(maxRightExtension, volumeRatio * maxRightExtension);
float x = ChartPanel.W - marginRight;
if (alignment == BarAlignment.Center)
{
x -= maxRightExtension / 2;
}
else if (alignment == BarAlignment.Left)
{
x -= maxRightExtension;
}
// Create rectangle for the volume bar
var rect = new SharpDX.RectangleF(
x,
y - barHeight / 2,
barWidth,
barHeight
);
// Set brush opacity and draw the bar
brush.Opacity = distanceOpacity;
RenderTarget.FillRectangle(rect, brush);
// Draw volume text if enabled and volume meets threshold
if (ShowVolumeText && (volumeRatio * 100 >= VolumeThresholdPercent))
{
float textSizeRange = maxTextSize - minTextSize;
float textSize = Math.Min(maxTextSize, Math.Max(minTextSize, minTextSize + (textSizeRange * volumeRatio)));
using (var textFormat = new SharpDX.DirectWrite.TextFormat(Core.Globals.DirectWriteFactory,
"Segoe UI", textSize))
{
textFormat.TextAlignment = SharpDX.DirectWrite.TextAlignment.Leading;
textFormat.ParagraphAlignment = SharpDX.DirectWrite.ParagraphAlignment.Center;
float textX = rect.X + (alignment == BarAlignment.Right ? barWidth : 0) + 5;
var textRect = new SharpDX.RectangleF(
textX,
rect.Y,
50,
rect.Height
);
textBrush.Opacity = distanceOpacity;
RenderTarget.DrawText(
volume.ToString("N0"),
textFormat,
textRect,
textBrush
);
// Calculate price range key
double rangeKey = Math.Floor(price / (tickSize * priceRangeTicks)) * (tickSize * priceRangeTicks);
// Update volumesByPriceRange with the maximum volume in this range
if (!volumesByPriceRange.ContainsKey(rangeKey))
{
volumesByPriceRange[rangeKey] = volume;
}
else
{
volumesByPriceRange[rangeKey] = Math.Max(volumesByPriceRange[rangeKey], volume);
}
}
}
}
private bool HasCloserVolumeText(HashSet<long> shownVolumes, long volume, double currentPrice, double referencePrice)
{
if (shownVolumes.Contains(volume))
{
double currentDistance = Math.Abs(currentPrice - referencePrice);
return currentDistance > 0;
}
return false;
}
private class OrderInfo
{
public double Price { get; set; }
public long Volume { get; set; }
public DateTime Time { get; set; }
public bool IsHistorical { get; set; }
}
private class VolumeTextInfo
{
public long Volume { get; set; }
public SharpDX.RectangleF Rectangle { get; set; }
public float TextWidth { get; set; }
public float TextPadding { get; set; }
public SharpDX.DirectWrite.TextFormat Format { get; set; }
public bool IsBid { get; set; }
}
private class TextInfo
{
public double Price { get; set; }
public long Volume { get; set; }
private SharpDX.RectangleF _rectangle;
public SharpDX.RectangleF Rectangle
{
get { return _rectangle; }
set { _rectangle = value; }
}
}
}
}
#region NinjaScript generated code. Neither change nor remove.
namespace NinjaTrader.NinjaScript.Indicators
{
public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase
{
private Staging.Domdicator_Staging2[] cacheDomdicator_Staging2;
public Staging.Domdicator_Staging2 Domdicator_Staging2(int marginRight, int maxRightExtension, float maxTextSize, float minTextSize, bool showVolumeText, int priceRangeTicks, int volumeThresholdPercent, float historicalOpacity, BarAlignment alignment)
{
return Domdicator_Staging2(Input, marginRight, maxRightExtension, maxTextSize, minTextSize, showVolumeText, priceRangeTicks, volumeThresholdPercent, historicalOpacity, alignment);
}
public Staging.Domdicator_Staging2 Domdicator_Staging2(ISeries<double> input, int marginRight, int maxRightExtension, float maxTextSize, float minTextSize, bool showVolumeText, int priceRangeTicks, int volumeThresholdPercent, float historicalOpacity, BarAlignment alignment)
{
if (cacheDomdicator_Staging2 != null)
for (int idx = 0; idx < cacheDomdicator_Staging2.Length; idx++)
if (cacheDomdicator_Staging2[idx] != null && cacheDomdicator_Staging2[idx].MarginRight == marginRight && cacheDomdicator_Staging2[idx].MaxRightExtension == maxRightExtension && cacheDomdicator_Staging2[idx].MaxTextSize == maxTextSize && cacheDomdicator_Staging2[idx].MinTextSize == minTextSize && cacheDomdicator_Staging2[idx].ShowVolumeText == showVolumeText && cacheDomdicator_Staging2[idx].PriceRangeTicks == priceRangeTicks && cacheDomdicator_Staging2[idx].VolumeThresholdPercent == volumeThresholdPercent && cacheDomdicator_Staging2[idx].HistoricalOpacity == historicalOpacity && cacheDomdicator_Staging2[idx].Alignment == alignment && cacheDomdicator_Staging2[idx].EqualsInput(input))
return cacheDomdicator_Staging2[idx];
return CacheIndicator<Staging.Domdicator_Staging2>(new Staging.Domdicator_Staging2(){ MarginRight = marginRight, MaxRightExtension = maxRightExtension, MaxTextSize = maxTextSize, MinTextSize = minTextSize, ShowVolumeText = showVolumeText, PriceRangeTicks = priceRangeTicks, VolumeThresholdPercent = volumeThresholdPercent, HistoricalOpacity = historicalOpacity, Alignment = alignment }, input, ref cacheDomdicator_Staging2);
}
}
}
namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
{
public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
{
public Indicators.Staging.Domdicator_Staging2 Domdicator_Staging2(int marginRight, int maxRightExtension, float maxTextSize, float minTextSize, bool showVolumeText, int priceRangeTicks, int volumeThresholdPercent, float historicalOpacity, BarAlignment alignment)
{
return indicator.Domdicator_Staging2(Input, marginRight, maxRightExtension, maxTextSize, minTextSize, showVolumeText, priceRangeTicks, volumeThresholdPercent, historicalOpacity, alignment);
}
public Indicators.Staging.Domdicator_Staging2 Domdicator_Staging2(ISeries<double> input , int marginRight, int maxRightExtension, float maxTextSize, float minTextSize, bool showVolumeText, int priceRangeTicks, int volumeThresholdPercent, float historicalOpacity, BarAlignment alignment)
{
return indicator.Domdicator_Staging2(input, marginRight, maxRightExtension, maxTextSize, minTextSize, showVolumeText, priceRangeTicks, volumeThresholdPercent, historicalOpacity, alignment);
}
}
}
namespace NinjaTrader.NinjaScript.Strategies
{
public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
{
public Indicators.Staging.Domdicator_Staging2 Domdicator_Staging2(int marginRight, int maxRightExtension, float maxTextSize, float minTextSize, bool showVolumeText, int priceRangeTicks, int volumeThresholdPercent, float historicalOpacity, BarAlignment alignment)
{
return indicator.Domdicator_Staging2(Input, marginRight, maxRightExtension, maxTextSize, minTextSize, showVolumeText, priceRangeTicks, volumeThresholdPercent, historicalOpacity, alignment);
}
public Indicators.Staging.Domdicator_Staging2 Domdicator_Staging2(ISeries<double> input , int marginRight, int maxRightExtension, float maxTextSize, float minTextSize, bool showVolumeText, int priceRangeTicks, int volumeThresholdPercent, float historicalOpacity, BarAlignment alignment)
{
return indicator.Domdicator_Staging2(input, marginRight, maxRightExtension, maxTextSize, minTextSize, showVolumeText, priceRangeTicks, volumeThresholdPercent, historicalOpacity, alignment);
}
}
}
#endregion