Daily PT and SL for Backtesting Only
Posted: Jul 04 2024
I'm having trouble getting any script to backtest properly with a Daily PT and SL (I'm intra-day trading). For example, let's say a script can take numerous trades during the day, including multiple entries in the same direction. Each trade has its own individual PT and SL. With AI help (chatGPT, cursor, Claude) I've been trying to get a script to recognize a daily PT and SL so it would quit trading for the day (again, on a backtest only) once one of those are hit. I already have this set up for live trading in Portfolio Trader through an MM signal, but it doesn't work outside of Portfolio Trader. I don't need the script to call on any equity positions or anything, just simply track cumulative PnL (with everyday beginning at zero) and cut off trading if daily PT or SL is hit. Is this something someone has successfully implemented?