The Automated Trading Script must be able to "Detect" buying conditions and selling conditions based on my logic. It must only buy ONE time in the buying condition and sell only ONE time in the selling condition (Do not repeatedly buy and sell if in a long buying condition). Once in a trade, there must be a profit target and once that profit target is hit there will be a trailing stop loss initiated of some sort.