NexusFi: Find Your Edge


Home Menu

 





Doubts about easylanguage coding


Discussion in MultiCharts

Updated
    1. trending_up 1,245 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Doubts about easylanguage coding

  #1 (permalink)
Malqpor
Spain, Saragossa
 
Posts: 6 since Jun 2015
Thanks Given: 0
Thanks Received: 0

Hello,

I'm looking into easylanguage and I want to port my strategies to it from MT4/NT.

I don't know how to access the discussion forum of Multicharts, so I'll put my doubts here.

I'm tryng to calculate an array of daily pivots, how can I do it?

Also, I'm pretty lost with everything about this scripting language, do you know any place where I can get help? Do Multicharts offer some kind of support? The pdfs and integrated help provided by Multicharts are far away from the Ninjatrader ones.

Greetings

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


Malqpor View Post
I'm tryng to calculate an array of daily pivots, how can I do it?

What code do you already have that you're trying with? That's probably easier to start from.


Malqpor View Post
Also, I'm pretty lost with everything about this scripting language, do you know any place where I can get help? Do Multicharts offer some kind of support? The pdfs and integrated help provided by Multicharts are far away from the Ninjatrader ones.

MultiCharts offers support on their forum, but there are also helpful people in the community (also here on futures.io (formerly BMT)) that are willing to help.

The integrated help (you mean the help file in the PowerLanguage .NET Editor?) is similar to the NinjaTrader reference manual (structured by group/keyword). There's also a wiki, and all PowerLanguage keywords can be found here.

Personally, I like to search with google with the `site:http://www.multicharts.com` query so that I can search the wiki and forum at the same time.

Reply With Quote
  #3 (permalink)
Malqpor
Spain, Saragossa
 
Posts: 6 since Jun 2015
Thanks Given: 0
Thanks Received: 0


Dude, great reply

 
Code
	
                        pivot= new double[periods];
			for(int i=1; i<periods-1;i++){
				if (Bars.GetDayBar(i) != null)
					pivot[i]=((Bars.GetDayBar(i).High+Bars.GetDayBar(i).Low+Bars.GetDayBar(i).Close)/3);
			}
Thats what I have regarding this in NT, periods comes from the user and I'm thinking about changing the "for" for a "foreach".

I'm using the easylenguaje, not the .net option, do you recomend me the .net version of multicharts?

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

I'm not familiar enough with NinjaTrader to say that `GetDayBar()` has an equivalent in MultiCharts (.NET). It is possible of course to calculate the daily high in MultiCharts (.NET) either with a function or yourself by resetting a variable whenever a new day occurred (if that's NinjaTrader's definition of "day").

In PowerLanguage there are also `highD()`, `lowD()`, etc functions that return the high of the day, so you might want to look into these.

If you're already using the PowerLanguage version I'd certainly not recommend switching to MultiCharts .NET. The learning curve of this latter platform is significantly stronger/higher, and the PowerLanguage version can do 95% of what MultiCharts .NET can.

In the long run, I think you'll save yourself a lot of time/energy and struggles by sticking to the PowerLanguage version.

Reply With Quote
  #5 (permalink)
Malqpor
Spain, Saragossa
 
Posts: 6 since Jun 2015
Thanks Given: 0
Thanks Received: 0


Jura View Post
I'm not familiar enough with NinjaTrader to say that `GetDayBar()` has an equivalent in MultiCharts (.NET). It is possible of course to calculate the daily high in MultiCharts (.NET) either with a function or yourself by resetting a variable whenever a new day occurred (if that's NinjaTrader's definition of "day").

In PowerLanguage there are also `highD()`, `lowD()`, etc functions that return the high of the day, so you might want to look into these.

If you're already using the PowerLanguage version I'd certainly not recommend switching to MultiCharts .NET. The learning curve of this latter platform is significantly stronger/higher, and the PowerLanguage version can do 95% of what MultiCharts .NET can.

In the long run, I think you'll save yourself a lot of time/energy and struggles by sticking to the PowerLanguage version.

I know C# already, I don't need to learn it. I didn't know that .NET and normal version where the same except for the languaje, if I have to choose, I choose C# because I don't have to learn it and I have a C# version of the indicator. I'll try to understand the .NET version.

Thank you so much Jura!

Reply With Quote




Last Updated on August 15, 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