I already have a working strategy live on Tradetron; I now need a small but important tweak. The exit logic must only allow a Sell when two criteria are met at the same time: the position has been held for at least X days and it shows a profit of at least Y %. I purposely left the exact numbers open because I want them exposed as variables at the top of the script so I can change them later without touching the rest of the logic. The code should slot straight into my existing blocks, stay fully compatible with Tradetron’s rule builder, and not disturb any of the current entry or risk-management conditions. Once you are done I’ll test the deployment on a paper account; if the strategy waits the correct number of days and exits only when both the time and profit thresholds are satisfied, the job is complete.