Type/to search
Built-in Functions
Global
Log
Log
LogStatus
LogProfit
LogProfitReset
LogReset
LogVacuum
EnableLog
Chart
KLineChart
console.log
console.error
exchange.Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

Clear all profit logs and the profit chart.

LogProfitReset()
LogProfitReset(remain)

Examples

Plot 30 points on the profit chart, then reset it to keep only the last 10.

javascript
function main() { // Print 30 data points on the profit chart, then reset, keeping only the last 10 data points for(var i = 0; i < 30; i++) { LogProfit(i) Sleep(500) } LogProfitReset(10) }
python
def main(): for i in range(30): LogProfit(i) Sleep(500) LogProfitReset(10)
rust
fn main() { // Print 30 data points on the profit chart, then reset, keeping only the last 10 data points for i in 0..30 { LogProfit(i); Sleep(500); } LogProfitReset(10); }

Arguments

NameTypeRequiredDescription

remain

number

No

Number of log entries to retain (an integer).

See Also