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)
A flag is a variable, that you give a certain value, to avoid multiple entries, or re-entry on the same bar.
I never work with strategy builder, but i guess, especially if you are building something more complex you
will have to change code manually. Even more complex things i make them completely outside of NT.
1. boolean flag
when you put an order, you put the boolean to true
when the order is executed or cancelled you put it to false
this would solve multiple entries
2. last order bar
memorize the bar that triggered the last order, if the next
trigger is the same bar, simply void it and wait for at least
a different bar, this would solve repeat entries in the same
bar
okay wait.. when you say "you put the boolean to true," how do I do that? I don't see "boolean" in the list of indicators. is this a piece of code I have to add the script, or an indicator I have to download off the internet..?
one again, I'm sorry for taking up your time. I know, I'm such a noob..
A community can only work if once in a while you give back.
I learned a lot on futures.io and I found a few very instructive people, who helped me get to the level where i am
if they would not have "helped" me, i would not be where i am.
okay, so just in case anyone who can help me is still here- I figured if the problem was that it was entering and exiting repeatedly as the bar ticks above and below the SMA.. then I could fix it by adding a condition to my entries;
if bars since exit execution > 15
and that would prevent it from entering again if it was ranging above and below the SMA.. but it didn't work.
WHY DIDN'T IT WORK???
Edit: I just realized it still plots entries and exits on the chart when I backtest, but the Summary is blank, and even though I have all the conditions set to 'plot on chart,' none of them are plotting on the chart. What is that about? Is this actually just a glitch?
Hello Gentlemen,
I was wondering if then you were able to end up with something useful regarding this issue of this interesting thread "BarsSinceEntryExecution isn't working".
I am very interested on this subject, because I tried to solve the very same issue. I also asked for NT support help and I exchanged several emails (sometime I could not really understand what they were saying) with them, but I could not end up with anything useful.
Then after a couple of weeks I noticed on this forum this great new thread of yours, but ... I do not see a conclusion. Did you perhaps end up with a practical solution to the issue of the subject.
If so please, kindly, could you let us all know?
Thank you very much for your precious time.
GT