VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy - MultiCharts | futures io social day trading
futures io futures trading


VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy
Updated: Views / Replies:24,678 / 39
Created: by Big Mike Attachments:16

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 16  
 
Thread Tools Search this Thread
 

VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy

  #11 (permalink)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received


erchis View Post
Hi,
I wrote some code according to the video and my trading rules above and tried it
on day chart of google, but it doesn't make any trades...is the algorithm correct?
. . . . . .

money ( 70000 ),

stocks ( Close/money ),
. . . . . .

@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.

Len

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Last edited by Lampert; May 22nd, 2012 at 07:12 PM. Reason: typo
Reply With Quote
The following user says Thank You to Lampert for this post:
 
  #12 (permalink)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received


guppy View Post
Hi Mike,

In your example, what if your profit or stop loss gets hit on the entry bar. How can you make it so that it will exit on the entry bar and not on the next bar?

@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 futures.io (formerly BMT) MoneyMaker code that is shown at the beginning of this thread.

Len

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following 5 users say Thank You to Lampert for this post:
 
  #13 (permalink)
Elite Member
Springfield, Missouri
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Interactive Brokers
Favorite Futures: EUR/USD
 
Posts: 28 since Sep 2012
Thanks: 29 given, 5 received


Hello,

This video will not play for me. Says: "300: Player initialization failed..."

Is this video located elsewhere too? Or could you upload it again BigMike? Thanks!

Reply With Quote
 
  #14 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,355 given, 83,237 received


Arich View Post
Hello,

This video will not play for me. Says: "300: Player initialization failed..."

Is this video located elsewhere too? Or could you upload it again BigMike? Thanks!

Try a different browser, like chrome, make sure you have the latest Flash player, make sure you aren't using any blocking scripts. Video works fine.

Mike

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.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #15 (permalink)
Elite Member
Norwich, UK
 
Futures Experience: Beginner
Platform: Multiple:research&executi
Broker/Data: Started with Stage5/OEC ... multiple
Favorite Futures: Anything found profitable goes ...
 
andby's Avatar
 
Posts: 141 since Jul 2012
Thanks: 82 given, 56 received

Hi Mike,

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 ?

Thx

Reply With Quote
 
  #16 (permalink)
Elite Member
Newcastle, Australia
 
Futures Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker/Data: IB
Favorite Futures: SPI,FTSE100, 6E, 6A
 
Posts: 285 since Oct 2010
Thanks: 108 given, 177 received

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.

Regards,
Neil.

Reply With Quote
The following user says Thank You to NW27 for this post:
 
  #17 (permalink)
Trading Apprentice
Frankfurt / Germany
 
Futures Experience: Intermediate
Platform: NT, MC
Favorite Futures: Stocks, Futures
 
sagetrade's Avatar
 
Posts: 47 since Jul 2013
Thanks: 28 given, 10 received


Big Mike View Post
Here is the code for jtHMA function if you need it:

 
Code
                            


{jtHMA Hull Moving Average Function}
{
AuthorAtavachron}
{
May 2005}

Inputsprice(NumericSeries), length(NumericSimple);
VarshalvedLength(0), sqrRootLength(0);

{
Original equation is:
---------------------
waverage(2*waverage(close,period/2)-waverage(close ,period), SquareRoot(Period)
Implementation below is more efficient with lengthy Weighted Moving Averages.
In additionthe length needs to be converted to an integer value after it is halved and
its square root is obtained in order for this to work with Weighted Moving Averaging
}

if ((
ceiling(length 2) - (length 2)) <= 0.5then
halvedLength 
ceiling(length 2)
else
halvedLength floor(length 2);

if ((
ceiling(SquareRoot(length)) - SquareRoot(length)) <= 0.5then
sqrRootLength 
ceiling(SquareRoot(length))
else
sqrRootLength floor(SquareRoot(length));

Value1 WAverage(pricehalvedLength);
Value2 WAverage(pricelength);
Value3 WAverage((Value1 Value2), sqrRootLength);

jtHMA Value3
Mike

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:

------ Compiled with error(s): ------
Wrong expression
errLine 9, errColumn 14, errLineEnd 9, errColumnEnd 27
causal study: (Function)

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.

Im new to MC so thanks a lot for helping me out!

Reply With Quote
 
  #18 (permalink)
Elite Member
Tremonton
 
Futures Experience: Intermediate
Platform: ???? still looking
Broker/Data: IB
Favorite Futures: TF
 
Posts: 4 since Aug 2011
Thanks: 4 given, 0 received

Thanks for tutorial on EL/MC

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!

Thanks

Reply With Quote
 
  #19 (permalink)
Trading Apprentice
Frankfurt / Germany
 
Futures Experience: Intermediate
Platform: NT, MC
Favorite Futures: Stocks, Futures
 
sagetrade's Avatar
 
Posts: 47 since Jul 2013
Thanks: 28 given, 10 received

has anybody help for my problem?

Reply With Quote
 
  #20 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary


Hi sagetrade,

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.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Regards,
ABCTG



sagetrade View Post
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:

------ Compiled with error(s): ------
Wrong expression
errLine 9, errColumn 14, errLineEnd 9, errColumnEnd 27
causal study: (Function)

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.

Im new to MC so thanks a lot for helping me out!


Reply With Quote
The following 2 users say Thank You to ABCTG for this post:

Reply



futures io > > > > VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy Big Mike NinjaTrader 63 November 6th, 2016 03:25 PM
VIDEO: MultiCharts vs. NinjaTrader strategy backtesting and optimization Big Mike MultiCharts 53 June 12th, 2016 02:34 PM
Anyone know of good video tutorial for C# language? whoisthere48 NinjaTrader Programming 11 April 1st, 2012 06:33 PM
Is there a video tutorial on creating a NT indicator (in 6.5)? Thanks. aquarian1 NinjaTrader 9 May 16th, 2011 06:56 PM
VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy Big Mike NinjaTrader Programming 0 January 26th, 2010 06:22 AM


All times are GMT -4. The time now is 03:49 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-17 in 0.09 seconds with 19 queries on phoenix via your IP 107.20.115.174