NexusFi: Find Your Edge


Home Menu

 





Notepad++ and EasyLanguage


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one vmodus with 10 posts (32 thanks)
    2. looks_two sgjohnson with 4 posts (3 thanks)
    3. looks_3 rc76 with 4 posts (2 thanks)
    4. looks_4 AllSeeker with 3 posts (2 thanks)
      Best Posters
    1. looks_one vmodus with 3.2 thanks per post
    2. looks_two syswizard with 1.3 thanks per post
    3. looks_3 sgjohnson with 0.8 thanks per post
    4. looks_4 AllSeeker with 0.7 thanks per post
    1. trending_up 10,535 views
    2. thumb_up 43 thanks given
    3. group 9 followers
    1. forum 25 posts
    2. attach_file 3 attachments




 
Search this Thread

Notepad++ and EasyLanguage

  #21 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


sgjohnson View Post
Hm. It seems NPP doesn't do EasyLanguage multi-line comments correctly if you're commenting out anything with brackets already in them.

I will take a look at this. I'm working on the dark theme in the next few weeks, so maybe I will look at this at the same time. Can you point me in the right direction with a language in NPP that does multi-line comments as you described?

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
34 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #22 (permalink)
 sgjohnson 
Kingsport, Tennessee
 
Experience: None
Posts: 37 since Apr 2020
Thanks Given: 13
Thanks Received: 13


vmodus View Post
I will take a look at this. I'm working on the dark theme in the next few weeks, so maybe I will look at this at the same time. Can you point me in the right direction with a language in NPP that does multi-line comments as you described?

I don't think the particular language is the issue. It's just an issue with NPP. If you create a completely new language and use an open bracket as the opening of the block comment and the close bracket as the closing of the block comment, it still does the same thing. Take this block for example:
 
Code
{ trend:=	if (barstate.isfirst) {
			1
		} else {
			if (close>nz(resistance[1])) {
				1
			} else {
				if (close<nz(support[1])) {
					-1
				} else {
					nz(trend[1])
				}
			}
		}


if first bar, trend equals 1, or if close is greater than resistance of last bar, equals 1,
or if close is less than support of last bar, equals -1, otherwise trend of last bar }
This was a nested ternary operation from a PineScript indicator I converted to if-else to help me understand it so I could convert to EasyLanguage. I just copied and pasted into the code I already had to make it convenient to look at. If you copy and paste into TDE, it's commented out, but not in NPP. Not completely anyway. Some is, some isn't. It's not a huge deal. I can always use line comments since it's not terribly difficult to read.

Reply With Quote
Thanked by:
  #23 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853



sgjohnson View Post
I don't think the particular language is the issue. It's just an issue with NPP. If you create a completely new language and use an open bracket as the opening of the block comment and the close bracket as the closing of the block comment, it still does the same thing. Take this block for example:

This was a nested ternary operation from a PineScript indicator I converted to if-else to help me understand it so I could convert to EasyLanguage. I just copied and pasted into the code I already had to make it convenient to look at. If you copy and paste into TDE, it's commented out, but not in NPP. Not completely anyway. Some is, some isn't. It's not a huge deal. I can always use line comments since it's not terribly difficult to read.

Thanks. I'm wondering if those characters can be escaped somehow, if you know what I mean. I'm not sure how flexible the language editor is, but I will take a look at it anyhow.

I'll post any updates on this thread.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #24 (permalink)
 sgjohnson 
Kingsport, Tennessee
 
Experience: None
Posts: 37 since Apr 2020
Thanks Given: 13
Thanks Received: 13

Actually, line comments don't seem to work either. NPP sees a close bracket as ending the comment regardless if it's preceded by a line comment on the same line. Weird.

Reply With Quote
  #25 (permalink)
 Masber2000 
Detroit, MI
 
Experience: Intermediate
Platform: MultiCharts, Matlab
Posts: 12 since Mar 2010
Thanks Given: 25
Thanks Received: 5

Thank you for this! Is there a way for Notepad++ to show function details when typing in the function, as in the EL/PL editor?

Reply With Quote
  #26 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146


vmodus View Post
You can pretty much design any language.

Nice work V....I use Notepad++ for fast searches thru the EasyLanguage source code, code comparisons using the Compare plug-in and for sending the source code to Github for versioning and archiving. It's a heckuva free tool.

Reply With Quote
Thanked by:




Last Updated on October 10, 2022


© 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