got that. I'm suggesting that you identify some trades from historical data, and list these in a spreadsheet or similar. Then you can automate just the trailing stop strategy to find a range of parameters that work OK.
You will probably already have identified these anyway.
Statistically, you need 30 trades or more to have a valid test (though I don't know exactly why this is the magic number). You don't need hundreds, but even if you are doing it manually, you will still need at least 30.
Some entries are impossible to code, but trailing stops are childs play.
I am willing to help if you want to go this way, as I have done something similar with TradeStation.
Good luck either way.