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)
@erchis - Your code will make trades if you just change from Close/money to money/Close. I did not check all of your code but here is a picture of the GOOG trades that it made in Jan-Feb 2011 (very few trades were made in 2012).
If you want to continue the discussion, you should open a new thread in this same sub-forum so that we don't get too far away from the topic of Mike's video tutorial. Also, there is more discussion of EasyLanguage strategies in the Elite section if you want to become a member.
@guppy - The important setting is intra-bar order generation. This allows orders to be made before the bar has been completed. This can be turned on under Format > Signal > Properties. Or you can add the following statement at the beginning of your code:
[IntrabarOrderGeneration = True]
Under Format > Signal > Properties, there are three options for setting the number of entries and exits per bar. You can try these different settings to see their effects.
In addition, the keywords SetProfitTarget and SetStopLoss generate orders before the bar has been completed even if IntrabarOrderGeneration is turned off.
For backtesting, it is also necessary to turn on the bar magnifier under Format > Strategy Properties > Backtesting. This allows data within the bar to be used for intrabar order generation. Calculations can be done on tick data or intra-day data depending on which box is checked.
In general, I always use [IntrabarOrderGeneration = True] in my code. For backtesting, I also use the bar magnifier with either tick data or 1 minute data depending availability.
Here are 4 different results from 4 different settings. Each of these results used the same nexusfi.com (formerly BMT) MoneyMaker code that is shown at the beginning of this thread.
How do you debug in easylanguage / Multicharts ?
If for example, you want to log variables in a logfile / logview, or want to do some execution stop at some point in your program to watch your variables, is this possible ?
In the easy language editor, you use the print command in your code and view the output at the bottom of the editor screen.
Don't forget about my printtext function in the download area.
thanks a lot first to BigMike for uploading this gerat Video. I just started to teach myself easylanguage and used this video as a starting point. This is realy awesome to learn!
Now that I succesfully mirror-coded your strategy and did the same with adding the HMA function, I ran into two issues now:
1. If I want to use the HMA within the chart, I do have to add it as an "indicator" I suppose. Unfortunately, this won't compile in my case. Giving me this message:
2. If I want to add the futures.io (formerly BMT) Test Strategy to a chart, it tells me that system tried to reference back more bars (51) than allowed by the current MaxBarsBack setting.
I am converting from Tradestation to MC, but am struggling with some of the settings I need. In viewing the tutorial on youtube, it seems as if I might have a different version of MC than the video. I only have the option of putting in $1 on commissions, and I can't figure out how I set the point value to $100 when testing the Russell 2000.
Any help would be greatly appreciated!
the code posted is for a function. It sounds like you tried to compile it within an indicator.
Paste it within a function called jtHMA and call the function from an indicator.
MC will raise a Max bars back error when something in the code calls for more than the default 50 bars. If you are using a length input for an average of 100 for example, you will need a "Maximum number of bars study will reference" of 100 at least.
To change this go to Format Signal -> Properties and within the Strategy Properties switch to the Properties tab.
There you'll find the input field to raise the max bars setting.
Regards,
ABCTG
sagetrade
Hey Guys,
thanks a lot first to BigMike for uploading this gerat Video. I just started to teach myself easylanguage and used this video as a starting point. This is realy awesome to learn!
Now that I succesfully mirror-coded your strategy and did the same with adding the HMA function, I ran into two issues now:
1. If I want to use the HMA within the chart, I do have to add it as an "indicator" I suppose. Unfortunately, this won't compile in my case. Giving me this message:
2. If I want to add the nexusfi.com (formerly BMT) Test Strategy to a chart, it tells me that system tried to reference back more bars (51) than allowed by the current MaxBarsBack setting.