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)
9/10 - Rolled into the Dec contract. BOT1 took a trade for a loser. Can't win them all. So far it's got 5 winners and 2 losers. Going to make some enhancements to it and keep working on BOT2 this weekend, a more frequent-trading, momentum-based strategy.
6E - 0 winners, 1 loser = -33 ticks
Can you help answer these questions from other members on NexusFi?
9/17 - BOT1 missed an early Monday morning trade because I didn't have the robot running. I stop it during the weekends. I wanted to make a few more tweaks over the weekend but didn't get around to it. Bummer.
Encountered another bummer today. It fired off what should have been a winning trade, but I had one of my money management settings incorrect and it used a trailing stop instead of a fixed stop and stopped me out just before it turned in the direction I was looking for. And the trailing stop fired at the absolute bottom of the move! I wish I could have had just 1 more tick!
So these are some of the travails of operating and maintaining automated strategies. I hate how NT makes you reload your strategies and reset all of the parameter settings if you ever shut down NT. I keep my settings in a spreadsheet for each instrument, but it's still no fun doing it this way. I know v7 is supposed to address this, but I could have used that now!
Still working on BOT2, stay tuned. I do my testing on ES because if a strategy can momentum-trade the ES it can do it on just about anything! ES is so messy...
I create a base copy of the strategy, and then do one of two things
a) Setup all the variables for each unique instrument inside the strategy, and then ask the strategy to look at the instrument name/symbol and apply the appropriate settings
or
b) (simpler) Create multiple copies, like strategy_ES, strategy_CL, strategy_ZN ... and customize the defaults for each instrument.
However, if you use option b) there is a nasty bug in Ninja where the variable settings will not get updated in the strategy menu from one strategy to another unless you make the names themselves unique. I brought this up about a year ago, I doubt it will ever be fixed. So I advise you don't name stuff "stop" and "target" but instead name it "stop_zn" and "target_es" etc so it is unique name in the strategy menu (Parameters).
Thanks for the advice, I'll take it into consideration. I have the parameters to make backtesting and optimization simpler, but when I put it live, aka "release" the software, I should hard-code the parameters.
So Mike, do you have many automated strategies running? Are they running on-their-own and auto-trading, or do you use them for your discretionary trading?
I've got 10-12 strategies at any given time, I've not had much time for discretionary lately in fact, but I do have strategies that I wrote for the purpose of assisting me in discretionary trading and not so much automation (ie: fast moving markets or hard to calculate decision points/triggers, order management, etc).
Is it possible to have flat file with strategy parameters, and every time strategy starts it should read file and make selection based on instrument and may be other criteria?
Other issue mentioned by Mike is quite surprising!
9/18 - BOT1 picked off another winner this morning. I'm going to work on enhancing it this weekend to only enter a trade after I get my first counter-trend bar. Most of the losers I get (though, few in number they are) are because the trend continues and never reverses in before hitting my stop loss. If I wait for a sign that a reversal may be in place I can usually get a better entry price, but I'll have to back test this.
Let's do it.
Our strategy have 5 parameters.
Let's say the first 2 parameters are the stop win and the stop loss.
We create a file in our NT directory, delimited by ',', name here strat-01.txt for ex.: ES 12-09,12,20,33,14,51
NQ 12-09,11,12,43,54,53
Then, include in the strategy:
Then in the "initialize" part (only the first 2 parameters are use here):
Then, in the OnBarUpdate() part, just be sure that there is a: