Concurrent Buy and Sell Signal
Author: rkhnat
Creation Date: 8/11/2014 8:55 AM
profile picture

rkhnat

#1
What code do you use to prevent a Sell signal and a Buy signal from occuring on the same bar.
If I get a buy signal, I do not want the sell signal to occur.
profile picture

Eugene

#2
The default single-position Strategy template. No need to prevent a concurrent signal because it doesn't have a chance to occur. Like question, like answer -- but please be specific because correct answer will depend on your code structure and order types.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).