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)
sorry, but the code doesnt work like it should be.
Here we are trading with the MA cross as example.
That means, that the trade is starting with a crossover and it is ending with the crossover in the other direction.
The time filter should take the trade out, if the exit crossover is still in the future.
But the code is doing that right now:
a) the exit time is canceling the second cross signal, if this valid exit signal is coming earlier. That is not allowed. So all trades ends only at this fix exit signal (that is coming later).
b) all the trades after the second fix end time does run only one period of a candle (so in a 5 minutes chart the trade is closing after 5 minutes).
The last I tried to change with a third exit time ("end of trading day"), but this does not work.
what you are meaning with "grouping feature": It is using Groups in the Strategy Builder and then unlocking the code? Or do you mean to change the code structure in NinjaScript manually?
thank you for this information. I testet its a while ago, but I did something wrong, because its did not work. Before I test its again, I tried a "last test" this morning right now. You see the names in German language.
So I put the stop times in the stop-part of my strategy. Now it works.