Translate simple code to Multicharts.NET! - MultiCharts | futures.io
futures io futures trading


Translate simple code to Multicharts.NET!
Started: by Gabriel123 Views / Replies:241 / 4
Last Reply: Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Translate simple code to Multicharts.NET!

  #1 (permalink)
Elite Member
Stockholm
 
Futures Experience: Intermediate
Platform: ProRealTime
Favorite Futures: DAX
 
Posts: 39 since Jul 2015
Thanks: 6 given, 3 received

Translate simple code to Multicharts.NET!

How would I translate this simple code to Multicharts.NET to create a "complete signal"?

Thanks in advance.

 
Code
                            
If RSI(c,2) < AND Average(C,200)

then buy next bar at open;

If 
RSI(c,2) > 65
then sell next bar at open


Reply With Quote
 
  #2 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: -
 
Jura's Avatar
 
Posts: 766 since Apr 2010
Thanks: 2,347 given, 649 received


Gabriel123 View Post
How would I translate this simple code to Multicharts.NET to create a "complete signal"?

Can you also post your MultiCharts .NET attempt so far? Then we can help with more focused comments and suggestions. That would be more helpful in the end for you.

Reply With Quote
The following user says Thank You to Jura for this post:
 
  #3 (permalink)
Elite Member
Colorado
 
Futures Experience: Advanced
Platform: MultiCharts
Broker/Data: IB & Iqfeed
Favorite Futures: ES , CL
 
sptrader's Avatar
 
Posts: 522 since Apr 2010
Thanks: 1,061 given, 662 received


The Multicharts discussion forum is probably the best place to ask that..if you don't get your answer here.... I use the standard version of Multicharts, so I can't be of much help..

http://www.multicharts.com/discussion/viewforum.php?f=19

Reply With Quote
 
  #4 (permalink)
Elite Member
Stockholm
 
Futures Experience: Intermediate
Platform: ProRealTime
Favorite Futures: DAX
 
Posts: 39 since Jul 2015
Thanks: 6 given, 3 received


Jura View Post
Can you also post your MultiCharts .NET attempt so far? Then we can help with more focused comments and suggestions. That would be more helpful in the end for you.

This is what I have so far:

 
Code
                            
using System;

using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
using ATCenterProxy.interop;

namespace 
PowerLanguage.Strategy {
    public class 
___Test01 SignalObject {
        public 
___Test01(object _ctx):base(_ctx){}
        private 
IOrderMarket buy_order;
        protected 
override void Create() {
            
// create variable objects, function objects, order objects etc.
            
buy_order OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, EOrderAction.Buy));
        }
        protected 
override void StartCalc() {
            
// assign inputs 
        
}
        protected 
override void CalcBar(){
            if 
RSI(c,2) < && Average(C,200) {
                
buy next bar at open;
            }
            
            if 
RSI(c,2) > 65 {
                
sell next bar at open;
            }
        }
    }


Reply With Quote
 
  #5 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,257 since Apr 2013
Thanks: 201 given, 707 received

Futures Edge on FIO
Gabriel123,

it appears you simply copied and pasted the EasyLanguge code into the default signal template. This won't work unfortunately, as you are trying to mix two programming languages. MC.NET uses C# and unless you rewrite your code into C# it won't compile.

If you are able to code in C# I would suggest to take a look at the Multicharts.NET Programming Guide and check the build in RSI and Average indicators to see how they are implemented in MC.NET.

In case you are new to or want to start with C# I would suggest to start with a basic tutorial first, before trying to code an automated trading system in C#. Once you have a good understanding of the basics you might want to consider reading @Jura 's excellent website www.tradingcode.net for a better understanding of the specifics for MC.NET.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > Translate simple code to Multicharts.NET!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Mastering Trading Pysychology w/Brett Steenbarger & Trading Technologies

Elite only

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert code from multicharts(ELD) to Multicharts.NET rmiller863 MultiCharts 4 May 21st, 2016 09:16 AM
Multicharts and MultiCharts.NET 9.1 Beta 2 Aufidius MultiCharts 0 August 24th, 2015 12:05 AM
MultiCharts and MultiCharts.NET 9.1 Beta 1 panz MultiCharts 1 August 5th, 2015 11:47 AM
MultiCharts and MultiCharts .NET: where are indicators more performant? GoSlow MultiCharts 3 February 3rd, 2014 01:33 AM
Multicharts with .Net ehlaban MultiCharts 141 June 27th, 2013 09:52 AM


All times are GMT -4. The time now is 06:33 AM.

no new posts
Page generated 2017-03-24 in 0.08 seconds with 19 queries on phoenix via your IP 54.204.194.23