Is there a way to have an output if your profit target was hit and a different output if your stop is hit on a 5 minute chart, then you can take in consideration of the last trade outcome on your next?

Could this be done in the strategy builder or would it have to be done via ninjascript?


Thanks for your help!