The system based functions will not work from indicators. You need to use the Processor API based functions. You can use the market object by using the thismarket object.
' TradersStudio(r) (c) 2005-2007 ' Shows how to access Market object from a session ' It uses Thismarket Sub TS_PlotDrawdown() Plot1(Thismarket.Equity(BarNumber).Drawdown) End Sub
|