Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 08-18-2009, 06:34 AM   #1

Join Date: Apr 2009
Location: Paris, France
Posts: 33
Ignore this user

Thanks: 7
Thanked 1 Time in 1 Post

MultiCharts Coding

Hello,

I'm starting with MultiCharts and for my first programming exercise, I would like to generate a signal and an alert if the following conditions are present:
Condition1 =macd line >0
Condition2 = macd histogramme >0
Condition3 = price cross over upper bollinger band

Could you please help me to write this code ?

Is it an indicator or a signal or a function ???

Thanks in advance,
Yakalfer is offline  
Reply With Quote
Old 08-18-2009, 07:26 AM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: MultiCharts Coding

go to this page
Online Tutorials

download this document
Getting Started with EasyLanguage

it is not a difficult book, but it does take time and patience to read.
the book is full of examples for all kinds of analysis.
I promise you, the payback will be in multifold.


I can help you to get from step 1 to step 2,
but you have to first get from step zero to step one.

Last edited by Tams; 08-18-2009 at 08:03 AM.
Tams is offline  
Reply With Quote
Old 08-18-2009, 06:02 PM   #3

Join Date: Apr 2009
Location: Paris, France
Posts: 33
Ignore this user

Thanks: 7
Thanked 1 Time in 1 Post

Re: MultiCharts Coding

Thank you Tams for your help.

I just finished studying the book, but I am unable to set an alarm between a bollinger band, a MACD and the price ...
This is not as "easy" as that ...

This indicator took me 1 minute on ProRealTime, 10 minutes on NinjaTrader, and I fear it requires me 1 week on MC ...

So, what can I do ?
And is there any website where I could find some free indicators and strategy (exemple : pivot point, macd in color, etc, ...) ???

Thanks in advance !
Yakalfer is offline  
Reply With Quote
Old 08-18-2009, 06:06 PM   #4

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: MultiCharts Coding

Quote:
Originally Posted by Yakalfer »
Thank you Tams for your help.

I just finished studying the book, but I am unable to set an alarm between a bollinger band, a MACD and the price ...
This is not as "easy" as that ...

This indicator took me 1 minute on ProRealTime, 10 minutes on NinjaTrader, and I fear it requires me 1 week on MC ...

So, what can I do ?

stay with Ninja


Quote:
And is there any website where I could find some free indicators and strategy (exemple : pivot point, macd in color, etc, ...) ???

Thanks in advance !

MultiCharts comes with hundreds of indicators and strategies.

Start your PowerEditor,

File> Open


you will see the list there.
Tams is offline  
Reply With Quote
Old 08-18-2009, 06:33 PM   #5

Join Date: Apr 2009
Location: Paris, France
Posts: 33
Ignore this user

Thanks: 7
Thanked 1 Time in 1 Post

Re: MultiCharts Coding

I need a Real-Time Market Scanner and it seems to me that it does not exist in NinjaTrader ...

To schedule a simple strategy as (MACD> 0 and macdligne> 0 and price crossover BBup), where can I find help?
Yakalfer is offline  
Reply With Quote
Old 08-18-2009, 07:57 PM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: MultiCharts Coding

Quote:
Originally Posted by Yakalfer »
I need a Real-Time Market Scanner and it seems to me that it does not exist in NinjaTrader ...

To schedule a simple strategy as (MACD> 0 and macdligne> 0 and price crossover BBup), where can I find help?


EasyLanguage is English like; it is easy to learn.
See the scribble you made? You already have 90% the strategy written!
Just combine the indicators and add your logic to the end...
and voila, you have your scanner !

Give it a try... you will be amazed at what you can do.

Good luck!

Last edited by Tams; 08-18-2009 at 08:11 PM.
Tams is offline  
Reply With Quote
Old 08-19-2009, 04:39 AM   #7

Join Date: Apr 2009
Location: Paris, France
Posts: 33
Ignore this user

Thanks: 7
Thanked 1 Time in 1 Post

Re: MultiCharts Coding

ok, but for exemple, I write :

if Close > BollingerBand(Close,12,2) and MACD(Close,12,26) > 0 then buy next bar at market ;

if Close < BollingerBand(Close,12,2) and MACD(Close,12,26) < 0 then sellshort next bar at market ;

But how can I use the macd line ??? I need to add a condition macd line > 0 for long and macd line < 0 for short and I found nothing ine the user manual..

Thanks in advance,
Yakalfer is offline  
Reply With Quote
Old 08-19-2009, 06:23 AM   #8

Trader333's Avatar

Join Date: May 2008
Location: UK
Posts: 153
Ignore this user

Thanks: 79
Thanked 24 Times in 20 Posts

Re: MultiCharts Coding

What format does Multicharts save easylanguage files in ? Is it ELD or something else ?


Paul
Trader333 is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding Help for TS blib Coding Forum 2 03-31-2009 08:53 AM
Coding Help PeterBrazel Coding Forum 11 03-22-2009 04:44 PM
CQG - Coding Papa Lazarou Coding Forum 4 01-12-2009 08:13 PM
Multicharts ptop Beginners Forum 8 11-04-2007 05:38 AM
[VSA] Coding TinGull Coding Forum 2 03-18-2007 01:05 PM

All times are GMT -4. The time now is 01:39 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.