NexusFi: Find Your Edge


Home Menu

 





Indicators for Multicharts.NET SE


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one jojojo with 9 posts (0 thanks)
    2. looks_two Jura with 6 posts (5 thanks)
    3. looks_3 ABCTG with 3 posts (3 thanks)
    4. looks_4 panz with 3 posts (0 thanks)
      Best Posters
    1. looks_one Jigsaw Trading with 3 thanks per post
    2. looks_two mattz with 2 thanks per post
    3. looks_3 ABCTG with 1 thanks per post
    4. looks_4 Jura with 0.8 thanks per post
    1. trending_up 10,767 views
    2. thumb_up 17 thanks given
    3. group 7 followers
    1. forum 25 posts
    2. attach_file 4 attachments




 
Search this Thread

Indicators for Multicharts.NET SE

  #21 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7

Thanks for clearification about the CalcBar method .The thread is named Indicators for MC.Net.That's what I'm trying to develop and I appreciate every help.But please don't waste your time anymore telling me what I have to do or not - that's not very helpful .I just want to plot these lines and stuck within.
Tried to upload the .pln file , but does not have a valid extension , I think - maybe Admin can check this.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
The choice of instruments to trade
Psychology and Money Management
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
My NQ Trading Journal
21 thanks
Diary of a simple price action trader
20 thanks
Just another trading journal: PA, Wyckoff & Trends
17 thanks
Tao te Trade: way of the WLD
13 thanks
Daytrading ES & NQ
9 thanks
  #22 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

jojojo,

you might want to elaborate/clarify what you mean by that, as this doesn't come across very nice nor in a way that you actually appreciate the work @Jura has put into helping you. In my opinion it sounds like "just code it for me and don't bother me with explanations". It's probably just the language difference and I am sure you don't mean it that way.

Maybe you could explain what you think would be more helpful to you, instead of pointing you towards the right direction/approach?

Regards,
ABCTG


jojojo View Post
But please don't waste your time anymore telling me what I have to do or not - that's not very helpful .


Follow me on Twitter Reply With Quote
Thanked by:
  #23 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7


 
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.
Now this was not very polite I'm just responding.
I explained several times what my goal is ,as good I can - but unfortunately it is not very clear .
Ok then I'll repeat: I want to put horizontal trendlines on a chart.The quantity of the trendlines will increase ,
so the best way to store is with an array or any other collection.As I learned ,lists would be a better solution for this
because you can put in as many as you want.
that's it
every explanation ia a good explanation if you can understand it - but I'm sorry I do not

Reply With Quote
  #24 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

jojojo,

I must admit that it's not clear to me either what you are trying to accomplish. Your request is a synopsis of what you want, but it misses the important parts. When do you want to draw the trendlines and at what prices for example? What do you intend to do with them later? What are the conditions for the quantity increase etc..

When I stick to your request and create one horizontal line at the same price on every bar, it would fulfill your request. But I doubt that this is what you have in mind. Therefore it's so important to include all the details.

Imagine you go to buy a new car, you'd probably be very specific with your request, spend a lot of time with details and not just say "I want a car that drives". Same here, it's usually well spend time to sit down and properly explain what the code should do. Maybe create a flow chart for the logic. This will save you so much time in the end that it's well worth it.

Regards,

ABCTG


jojojo View Post
 
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.
Now this was not very polite I'm just responding.
I explained several times what my goal is ,as good I can - but unfortunately it is not very clear .
Ok then I'll repeat: I want to put horizontal trendlines on a chart.The quantity of the trendlines will increase ,
so the best way to store is with an array or any other collection.As I learned ,lists would be a better solution for this
because you can put in as many as you want.
that's it
every explanation ia a good explanation if you can understand it - but I'm sorry I do not


Follow me on Twitter Reply With Quote
Thanked by:
  #25 (permalink)
 jojojo 
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
Posts: 41 since Oct 2010
Thanks Given: 4
Thanks Received: 7

ok got it running -made it hardcoded with an array - so you can easy add as many lines you want



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

namespace PowerLanguage.Indicator
{
    [UpdateOnEveryTick(false), SameAsSymbol(true),RecoverDrawings(true)]
	
    public class Magnet_TrendLineCollection : IndicatorObject
 {
	    public Magnet_TrendLineCollection(object _ctx) : base(_ctx){}
		
        int[]numbers = new int[] {11120,11122,11124};
		
		//[Input]
        //public int firstprice { get; set; }
		
    protected override void StartCalc()
    {    
    }
	protected override void CalcBar()
	{
      {
		
		// Create the line's coordinates
		for (int i = 0; i < numbers.Length; i++)
	    {
        	ChartPoint beginPoint1 = new ChartPoint(Bars.Time[0],numbers[i]);
        	ChartPoint endPoint1   = new ChartPoint(Bars.Time[0],numbers[i]);
			ITrendLineObject MagnetLines = 
                    DrwTrendLine.Create(beginPoint1, endPoint1);
		            MagnetLines.ExtLeft  = true;
                    MagnetLines.ExtRight = true;
		            MagnetLines.Color = Color.LimeGreen;
		}
			   
      }
	    
    }
  }
}

Reply With Quote
  #26 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


jojojo View Post
that's it
every explanation ia a good explanation if you can understand it - but I'm sorry I do not


jojojo View Post
But please don't waste your time anymore telling me what I have to do or not - that's not very helpful .I just want to plot these lines and stuck within.

There is no shortcut with programming, and knowing what your code has and what your code doesn't have is equally important. If you find it annoying to put time and effort in formulating a coding idea (either for yourself or to get help from others), then I think programming is not for you and nor will MultiCharts .NET be the platform for you.

I do agree that trying to help you is a waste of time, so this is my last reply to you. By the way, I also think you're wasting your own time and possibly trading capital here too. Because the details that @ABCTG mentioned are not only important for programming, but for acting on your scripts confidently also. Otherwise, how would you be able to pull the trigger when money is on the line while you don't get your code but just hacked it together?

Reply With Quote
Thanked by:




Last Updated on November 21, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts