Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I was hoping someone could help me figure out how to program (if possible) a strategy using the NT Swing indicator that will not take the same trade twice.
In other words, If I want to enter a long when resistance is broken and I have programmed the strategy to place the buy stop above the swing high, how do I code for not re-entering at the same price if the trade moves beyond resistance a little bit and then trades back below the level, closing a bar that is now < the swing high and subsequently placing a new buy stop at the same price.
This is what I am starting with..
// Condition set 1
if (Close[0] < Swing(3).SwingHigh[0])
{
EnterLongStop(DefaultQuantity, Swing(3).SwingHigh[0] + 1 * TickSize, "Long");
}
Obviously the strategy is doing exactly what it is supposed to do when the price closes below a swing high it will plot a new buy stop.. The question is how to stop it from re-entering at the same price?
Can you help answer these questions from other members on NexusFi?