Skip to content
FAQ
Login
Register
Board Index
Pine Script Discussions
Pine Script Q&A
Unanswered topics
Active topics
FAQ
Search
Login
Register
Backtest only the last x trades
Post Reply
Print view
2 posts • Page
1
of
1
ThomasG
Pine Script Rookie
Posts:
1
Joined:
March 20th, 2022
Backtest only the last x trades
Quote
Sun Mar 20, 2022 8:57 am
Hi
I would like my script only to backtest the last 20 closed trades from the last closed bar and back. Is that even possible?
Thanks for any help
processingclouds
Pine Script Master
Posts:
115
Joined:
January 30th, 2022
Re: Backtest only the last x trades
Quote
Fri Mar 25, 2022 2:17 pm
Yes this is possible, you can define the time period and only enter the strategy if it is within your set time bounds.
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Pine Script Q&A”
Jump to
Welcome To The Pine Scripters Network!
News & Announcements
Introductions
Pine Script Discussions
Pine Script Q&A
Pine Script Scholars
Pine Script Masters
Show & Tell / Request
Share Your Scripts
Request Scripts
Trading Discussions
General Trading Discussions
Feedback & Support
Feedback & Suggestions
Request Support