I have a strategy that I am backtesting. When I backtest it, I get a chart with the prices and the entry and exit signals in it, but that's it. If I manually apply a template to the chart to add in the indicators I want to see it works, but once I run another backtest the indicators are gone again. Is there a way that I can have my indicators on the backtesting charts already loaded after the test is complete? Can I apply a template chart somehow in the strategy code? I don't want to duplicate all of the indicator painting code in my strategy.
BTW, I finally got my first profitable strategy up and running last night! +$13K on the Sept ES with 10 contracts 6/1 to 6/30, 43% winning trades. I was up until 5am tweaking it and the < 50% success ratio worried me. Sure enough, the next day I ran it for the June ES for the 3 months previous and it failed miserably, too many trades entering at the very end of a trend move. Now I'm tired and (virtually) broke for the rest of the day. Oh well!
I'm really not looking for any holy grail indicator/system, I just want to automate the decision-making process I go through when I trade myself, automate some of my discretionary thinking, detecting price and volume breakouts, recognizing S/R levels, filtering trades against other time-frames, etc. as well as some high probability contrarian strategies (after large, rapids moves, scalp the short-term reversal)
Once I get some more consistent results I'll post up my progress.
1) Don't use the Chart feature within Strategy Analyzer, instead apply the strategy to a normal chart (File - New Chart), right-click, Strategy, add.
or, 2) Add the lines in the #initialize section of your strategy to Add() the indicators. Read up on NT's on-line help about Add(), but basically it's:
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
Another way to do it is to use the wizard to create the Add() code for you.
Just start a new strategy with the wizard, skip to the conditions screen, and build a condition with the indicator you're interested in. There's an option in the indicator settings called "Plot on chart" - set this to true. Then all you need to do is click on the View Code button and copy/past the code from the Initialize section into your custom strategy and then cancel out of the wizard.
Good luck, and may your next strategy be a profitable one!