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)
Hello MXASJ,
I reviewed the code and had the initial thought that I didn't see the arrows displayed.
The arrows needs to be adjusted as follows (or in a similar manner):
other than that, no immediate comments. I don't use market orders in real-life and don't like the NT manner of EnterLong/Short...
I'm trying to get a strat to work with scaling out but using limit entry orders. I'm stuck temporarily until I figure the nuances of coding the NT limit orders / stop orders.
Kirk
Can you help answer these questions from other members on NexusFi?
Thanks Kirk. Yep its a bit buggy. I just deleted a bunch of other stuff in an existing template I use for backtesting and added the Close[0]>Close[1] etc for long/short before posting it. I just tried it on some contracts and its going long only, which my original strat doesn't do.
A better way (if someone wants to step up to the plate) might be random entries (long or short) every x number of bars if marketposition=flat.
I made a few quick changes. I'd like to work on this more but don't have time right now. The random entries have always been an interesting thing for me as an exercise in money management, but I don't have the extra few minutes right now to code it up
I did make these changes:
I also commented out the if Flat part, because if a new condition for a reversal occurs I want to exit the open trade and enter the new direction.
The idea works well in trending periods but obviously fails when market is not trending, which is the majority of time.
I was testing a commercial auto-trader recently, and it had the similar issue with non-trending market. If I let it run without intervention, all the small profits would erode into big losses due to frequent whipsaws. I am wondering if there is any effective way to tell a non-trendng market.