HLCCalculationMode' is an enum parameter. How do add a reference of HLCCalculationMode' so I can compile?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
HLCCalculationMode' could not be found
Collapse
X
-
Hi, If you are trying to access the CamarillaPivot drawing tool data, this line should work as indicators/strategies include the DrawingTools namespace:
protected override void OnBarUpdate()
{
double valueR1 = CamarillaPivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData, 0, 0, 0, 20).R1[0];
}
Comment
-
Both PivotRange and HLCCalculatioMode are defined in @Pivots.cs,
but since they are not defined inside a named namespace, they default
to being part of the global namespace.
Try using global::HLCCalculationMode in your code.
Comment
-
That's because PivotRange and HLCCalculationMode
are defined inside @Pivots.cs, so the compiler finds
those enums just fine when you compile normally.
When you export, did you add the Pivots indicator
to your assembly?
That should solve your problem.
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
36 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
14 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
19 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment