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


Translate simple code to Multicharts.NET!
Updated: Views / Replies:281 / 4
Created: by Gabriel123 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, 653 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,064 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)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,322 since Apr 2013
Thanks: 209 given, 747 received

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)

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

May
 

EasyLanguage ABC's: Mastering TradeStation Programming w/Chris Kaiser

Elite only
 

Prototyping Python Strategies (part 2: Backtesting) w/Ran Aroussi [special time: 1PM ET]

Elite only
 

Portfolio Diversification w/Brendon Delate @ Diversify Portfolio

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

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 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 12:30 AM.

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-05-24 in 0.10 seconds with 19 queries on phoenix via your IP 54.224.153.234