LogProfitReset
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
| Name | Type | Required | Description |
remain | number | No | Number of log entries to retain (an integer). |
See Also