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


Translate simple code to Multicharts.NET!
Started: by Gabriel123 Views / Replies:206 / 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, 646 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: 520 since Apr 2010
Thanks: 1,045 given, 646 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)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,186 since Apr 2013
Thanks: 198 given, 679 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)
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

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


All times are GMT -4. The time now is 08:37 PM.

no new posts
Page generated 2017-01-22 in 0.10 seconds with 19 queries on phoenix via your IP 54.205.13.200