Am facing this error from last week.
1. I have a 4 .cs file one related to another
letus say a,b,c,d.
a.cs file is the main one am insert here setdefault some code
Calculate = Calculate.OnEachTick;
IsOverlay = true;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
*but the thing b.cs file related to this for exmple under a namespace class b as created .
* ut am geeting error in the b.cs file class member declaratione expected so on see attacment.
public void AddVolume(double price, long volume, TradeSide side, DateTime time, int barIdx)
{
if (ladder.Count == 0)
{
Begin = time;
BeginBarIdx = barIdx;
}
End = time;
EndBarIdx = barIdx;
AddVolume(price, volume, side);
close[barIdx] = price;
}
// } //newly added
public long GetPOCVolume() => ladder.Max(kv => kv.Value);//here is the problem
public long GetPOCVolume(TradeSide side) => [ladderBidAsk(int)side].Max(kv => kv.Value);
public long Volume() Volume => ladder.Sum(kv => kv.Value);
public bool IsEmpty() => ladder.Count == 0;
in the b.cs file there no any onstate bar setdefaults method just it created public class b. but a.cs file contains all these methods.
Please send me solutione asap am wasting the lot of time ...

Comment