Indicators for Multicharts.NET SE - MultiCharts | futures io social day trading
futures io futures trading


Indicators for Multicharts.NET SE
Updated: Views / Replies:3,207 / 25
Created: by RCinLB Attachments:4

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
 4  
 
Thread Tools Search this Thread
 

Indicators for Multicharts.NET SE

  #11 (permalink)
Elite Member
FrankfurtGermany
 
Futures Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

Thanks for clarification.Maybe we can start with this one.

@Jura
just curious - did you adapt your cum.delta approach for MC.Net ?

regs

Attached Files
Register to download File Type: txt ADXVMA.txt (2.4 KB, 25 views)

Last edited by jojojo; November 10th, 2015 at 07:54 AM.
Reply With Quote
 
  #12 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


jojojo View Post
Jura
just curious - did you adapt your cum.delta approach for MC.Net ?

I think you're confusing me with someone else -- I don't have a Cumulative Delta trading approach.

Reply With Quote
 
  #13 (permalink)
Elite Member
Naperville IL
 
Futures Experience: Intermediate
Platform: MC(.NET&EL),Zorro,TT,TWS
Broker/Data: IB, OANDA, IQFeed
Favorite Futures: Futures, FOREX, Options, Stocks & ETFs
 
Posts: 9 since Apr 2015
Thanks: 2 given, 5 received



jojojo View Post
Thanks for clarification.Maybe we can start with this one.

regs

Here you go. As you can see the translation is straightforward. C# is a bit verbose as it's a general purpose language so you have to follow its object oriented framework; but you will gain a lot in the future by using C#.

I tried to translate your EL code line by line without any change. So when I saw "High[1] - High[1]" was used in two places I also translated them without change but added comment wondering why you did this instead of just writing down 0 - could it be a typo, or you modified the script from something else into this?

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


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


The 2 screen shots show that my NET result matches your EL result. (I don't own MultiCharts standard version so I had to get a demo running on a Windows virtual machine to get EL result since demo on my physical machine has long expired ).

There might be minor differences around open and close because the data source is Interactive Brokers for EL and IQFeed for NET (cannot get 2 identical logins running simultaneously for either single data source).

Attached Files
Register to download File Type: cs jojo_ADXVMA.Indicator.CS (6.5 KB, 30 views)
Reply With Quote
 
  #14 (permalink)
Elite Member
FrankfurtGermany
 
Futures Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

@ Jura : This here https://futures.io/elite-circle/10458-gom-cumulative-delta-volume-multicharts-28.html

@panz: Great thank you very much ; ofcourse you are right must be a typo , never mentioned it
I think it should be High-High[1] analog to the rest.

But anyway great to have the possibility to compare both - thanks again

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


jojojo View Post
Jura
just curious - did you adapt your cum.delta approach for MC.Net ?



Ah I see. That was me coding something and helping others, not me suggesting a trading approach. I think you're better off following the latest version posted by SPMC here: https://futures.io/elite-circle/10458-gom-cumulative-delta-volume-multicharts-29.html#post280452

I haven't converted that code to MC .NET.

Reply With Quote
 
  #16 (permalink)
Elite Member
FrankfurtGermany
 
Futures Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

Another question

I came up with another newbie question.I want to store some trendlinearray in an indicator ,which will be added manually time by time to use on different charts.But stuck ofcourse Here is what I got so far:
Don't know if the boolean is necessary at all , found it as an suggestion on tradingcode.net articles.
What am I doing wrong?

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

namespace PowerLanguage.Indicator
{
[UpdateOnEveryTick(false), SameAsSymbol(true),RecoverDrawings(false)]

public class Magnet_TrendLineCollection : IndicatorObject
{
public Magnet_TrendLineCollection(object _ctx) : base(_ctx)

int[]numbers = new int [3]{10000,10050,10100};

//private bool linesAlreadyCreated;

protected override void StartCalc()
{
//linesAlreadyCreated = false;
}
protected override void CalcBar()
{
//if (Bars.LastBarOnChart && !linesAlreadyCreated)

{
for (int i = 0; i < 3; i++)
// Create the line's coordinates
ChartPoint beginPoint1 = new ChartPoint(Bars.FullSymbolData.Time[0],numbers(i));
ChartPoint endPoint1 = new ChartPoint(Bars.FullSymbolData.Time[0],numbers(i));
{
ITrendLineContainer MagnetLines = (DrwTrendLine.Create(beginPoint1, endPoint1));
MagnetLines.ExtLeft = true;
MagnetLines.ExtRight = true;
}
}
//linesAlreadyCreated = true;
}
}
}

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


jojojo View Post
I came up with another newbie question.I want to store some trendlinearray in an indicator ,which will be added manually time by time to use on different charts.But stuck ofcourse Here is what I got so far:
What am I doing wrong?

It's hard for me to tell what you're doing wrong here, since I don't get what you're trying to do. Perhaps an array with fixed values of 10000, 10050, and 10100 is a good idea, but it might also be a wrong approach to this problem.

I do know that you won't achieve your goal of 'added manually time by time to use on different charts'. That's because your `numbers` array is hardcoded, which doesn't make it manual and makes it the same on different charts.


jojojo View Post
Don't know if the boolean is necessary at all , found it as an suggestion on tradingcode.net articles.

That Boolean prevents the trend lines from being created with every script update. Currently, your script creates a trend line each each time `CalcBar()` executes. Even if you really wanted a new trend line drawn on every bar, this might give you troubles because there's a limit or 7,500 objects (see here), and that includes trend lines.

By the way, please read your code carefully because your for loop does the following:

 
Code
for (int i = 0; i < 3; i++)
    ChartPoint beginPoint1 = new ChartPoint(Bars.FullSymbolData.Time[0],numbers(i));
That's probably not your intention with the code, I think.


Last edited by Jura; November 15th, 2015 at 10:18 AM. Reason: typo
Reply With Quote
The following user says Thank You to Jura for this post:
 
  #18 (permalink)
Elite Member
FrankfurtGermany
 
Futures Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

sorry for my bad explanation .I want to collect horizontal trendlines ,which's price I can add manually.
This I tried with the array.Just keeping the prizes in this case and can be added with int[]numbers = new int [3]{10000,10050,10100};
Maybe there is a better solution , a list or sth similar.
ok then the boolean makes the code just print once - that's ok because it has not to be recalculated.

Reply With Quote
 
  #19 (permalink)
Elite Member
FrankfurtGermany
 
Futures Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

it's trial and error - I tried to manage it with List<> compiles but no plot

using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
using System.Collections.Generic;

namespace PowerLanguage.Indicator
{
[UpdateOnEveryTick(false), SameAsSymbol(true),RecoverDrawings(false)]

public class Magnet_TrendLineCollection : IndicatorObject
{
public Magnet_TrendLineCollection(object _ctx) : base(_ctx){}

//int[]numbers = new int [3]{10000,10050,10100};

public List<decimal> Prices = new List<decimal>();
private double firstPrice;
private double secondPrice;
private double thirdPrice;

private bool linesAlreadyCreated;

protected override void StartCalc()
{
Prices.Add(10750);
Prices.Add(10700);
Prices.Add(10650);
decimal firstPrice = Prices[0];
decimal secondPrice = Prices[1];
decimal thirdPrice = Prices[2];

//linesAlreadyCreated = false;
}
protected override void CalcBar()
{
//if (Bars.LastBarOnChart && !linesAlreadyCreated)

{
//for (int i = 0; i < 3; i++)
// Create the line's coordinates
ChartPoint beginPoint1 = new ChartPoint(Bars.FullSymbolData.Time[0],firstPrice);
ChartPoint endPoint1 = new ChartPoint(Bars.FullSymbolData.Time[0],firstPrice);
//ChartPoint beginPoint2 = new ChartPoint(Bars.FullSymbolData.Time[0],secondPrice);
//ChartPoint endPoint2 = new ChartPoint(Bars.FullSymbolData.Time[0],secondPrice);
//ChartPoint beginPoint3 = new ChartPoint(Bars.FullSymbolData.Time[0],thirdPrice);
//ChartPoint endPoint3 = new ChartPoint(Bars.FullSymbolData.Time[0],thirdPrice);
{
ITrendLineObject MagnetLines = (DrwTrendLine.Create(beginPoint1, endPoint1));
//ITrendLineObject MagnetLines = (DrwTrendLine.Create(beginPoint2, endPoint2));
//ITrendLineObject MagnetLines = (DrwTrendLine.Create(beginPoint3, endPoint3));
MagnetLines.ExtLeft = true;
MagnetLines.ExtRight = true;
}
}
//linesAlreadyCreated = true;
}
}
}

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


If I may observe something, then you're overcomplicating things with a `List<T>`. In your last script, you use a generic list and then store the list values into decimal variables. In that case you don't need a list at all, especially since there always seem to be at most 3 horizontal lines that you want to draw (if I understand correctly). It might simplify things a bit if you just use the three variables.

With other things you're oversimplifying, for instance:


jojojo View Post
ok then the boolean makes the code just print once - that's ok because it has not to be recalculated.

This doesn't work that way; `CalcBar()` is executed on every bar, starting from the very first bar to the very last. Then, when there is real-time data, it's called on every tick (for strategies with intra-bar order generation and indicators set to 'update on every tick') or once per bar (for strategies without intra-bar generation and indicators with 'update on every tick' disabled).

This means it's not optional whether or not `CalcBar()` executes; it always does. Every script always calculates at least once per bar. It may not perform an action every time when `CalcBar()` executes, or your `CalcBar()` method may be empty with no code at all, but that doesn't mean that `CalcBar()` isn't called on every bar.

Edit. I noticed that your comment can also be read as 'it's good that the Boolean only executes the code once; that's what I need'. In that case my above explanation is not needed. But in that case I'm wondering why you say such a thing and not add it to the code?

Perhaps it's an idea to invest significantly more time in your replies, because it feels to me that I spend more time replying to you than you spend clarifying and proof-reading your requests for help. That's not how this is supposed to work in my view (assuming you want free help and a discussion that doesn't drag on for ages). Using the [ code ] .. [ / code ] tag would be nice too.

- - - - - - - -

By the way:


Jura View Post
I do know that you won't achieve your goal of 'added manually time by time to use on different charts'. That's because your `numbers` array is hardcoded, which doesn't make it manual and makes it the same on different charts.

In your last script, you still have the values hardcoded. If you want to use your script on different charts, you'll probably want to use inputs so that you can configure the indicator for each chart. And not plot lines at 10,000 for EUR/USD, for instance, as the current script does.


Last edited by Jura; November 15th, 2015 at 05:51 PM. Reason: Realised another interpretation
Reply With Quote
The following 2 users say Thank You to Jura for this post:

Reply



futures io > > > > Indicators for Multicharts.NET SE

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
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 07:04 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-14 in 0.17 seconds with 20 queries on phoenix via your IP 54.226.227.175