NeedForTrade Documentation

Report Graph Components

Report Graph Components are special functions written to analyze trades made by Strategies. You can create your own Report Graph Components just like a Function analysis technique (select File->New->Report Graph Component from main menu).

 

System is shipped with the following Report Graph Components:

 

You can use Historical Data and TradeOrders made by strategies applied to the symbol on the chart to calculate chart data points.

Report Graph Components can be Line or Histogram charts.  You can choose that via Properties

Use AddDataPoint(double x, double y) method to add data points to the chart.

Report Graph Components can have Parameters just as Function analysis technique.

 

Example (drawing equity curve line):

ProfitLoss profit = new ProfitLoss();
for (int i = 0; i < TradeOrders.Count; i++)
{
	profit.AddOrder(TradeOrders[i]);
	AddDataPoint(i+1, profit);
}

 

See also Creating Function.