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 rc76 with 4 posts (2 thanks)
    3. looks_3 sgjohnson with 4 posts (3 thanks)
    4. looks_4 syswizard with 3 posts (4 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,518 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

  #1 (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

I would like to share something with the community that my team came up with a couple of years ago and that I've been using a lot over the past month as I develop strategies and studies in EasyLanguage. I use Notepad++ in my daily life outside of trading for developing a ton of code in a number of different languages.

I often like to code outside the TradeStation Development Environment, for a number of reasons. The main reason is that I suffered a major crash of TradeStation and lost half day's work. I have a couple of version control mechanisms in place that constantly save my file changes in Notepad++, so I never lose my work.

How to install:
  1. Download the XML file attached to this forum post: EasyLanguage.xml
  2. Open Notepad++
  3. From the menu, click: Language > Define your language...
    [img]https://i.postimg.cc/J41VzM2J/SNAG-0133.png[/img]
  4. You will see the User Defined Language dialog box
    [img]https://i.postimg.cc/TPnCbWyP/SNAG-0134.png[/img]
  5. Click Import
  6. Locate the XML file you downloaded in Step 1
  7. Click Open
  8. You should see: Import successful.
How to use:
  • In the User Defined Language dialog box, I have defined the file extension esl for EasyLanguage. This means every time I open or save a file with that extension, the context highlighting will be applied. You can change this to whatever file extension you may prefer.
  • To apply the language immediately to an unsaved document,
  • From the menu, click: Language > EasyLanguage. It's that easy!
This is what it looks like in Notepad++:
[img]https://i.postimg.cc/bvR5BNbL/SNAG-0136.png[/img]

How to modify:
  1. From the menu, click: Language > Define your language...
  2. Select EasyLanguage, as shown here:
    [img]https://i.postimg.cc/W3GZSGjd/SNAG-0135.png[/img]
  3. Change the stylers as you like: font, colors, etc. (you're on your own there)
  4. Add your own custom function names to the styler lists, if desired/needed
  5. Changes are saved automatically. I like to keep a backup, so I always export my language definition for safekeeping.
Please note, you cannot modify ELD files in Notepad++, as they are binary. I mean, you could modify them, but not usefully.

Known issue:
  • The keyword arrays does not seem to appear in color as it should.
I do not use MultiCharts, so I cannot say how good this is with the EasyLanguage code you folks use. I only use TradeStation. Your mileage my vary.

I hope you find this useful. Please let me know if you find any issues with it, or feel free to upload and share your modifications.

~vmodus

Attached Files
Elite Membership required to download: EasyLanguage.xml
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?
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #3 (permalink)
 rc76 
Taipei
 
Experience: Beginner
Platform: NT
Broker: IB
Trading: ES
Posts: 8 since Jul 2018
Thanks Given: 1
Thanks Received: 2


Hi vmodus,

This is awesome, thank you so much for the great share.

If possible I have a little feature request. Since the usual TS IDE as well as NPP usually defaulted to white background for development, it will be great that if we can make the IDE into dark mode (or dark color background, better for the eyes).

Is there any chance we can do a slight mod to the XML so that the it will work with dark background? (or by any chance you also use sublime text and may have EasyLanguage addon for Sublime?)

Cheers!
rc76

Attached Thumbnails
Click image for larger version

Name:	01.png
Views:	259
Size:	187.8 KB
ID:	306460  
Reply With Quote
Thanked by:
  #4 (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


rc76 View Post
Hi vmodus,

This is awesome, thank you so much for the great share.

If possible I have a little feature request. Since the usual TS IDE as well as NPP usually defaulted to white background for development, it will be great that if we can make the IDE into dark mode (or dark color background, better for the eyes).

Is there any chance we can do a slight mod to the XML so that the it will work with dark background? (or by any chance you also use sublime text and may have EasyLanguage addon for Sublime?)

Cheers!
rc76

I'm glad this is useful for you. Hmmmmm...... dark background. Maybe you can check out these themes: https://cyberspacehawk.com/notepaddark-theme/ I have not used a theme before, so I don't know how the language will look. By coincidence, I just switched my PC over to dark theme a few days ago, so this is a very timely question.

I'm kind of old school..... my first computer black screen with amber characters and just block graphics, so I like the dark theme.

Personally, I'm not happy with my comment font, but I've been too lazy to fiddle with it.

I don't use sublime, but maybe we'll give a swing when I have some free time. I will let you know what I come up with for the Notepad++.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 rc76 
Taipei
 
Experience: Beginner
Platform: NT
Broker: IB
Trading: ES
Posts: 8 since Jul 2018
Thanks Given: 1
Thanks Received: 2

Thank you vmodus! Very looking forward!

I will post look things around see if can find anything.

Cheers!
rc76

Reply With Quote
  #6 (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


rc76 View Post
Thank you vmodus! Very looking forward!

I will post look things around see if can find anything.

Cheers!
rc76

FYI....I just remembered there was a thread on the TradeStation community forums where someone did something similar. You might want to search "Notepad++" over there.


Edit:
I happened to be over there, so here is the link:
https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=134952

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 
AllSeeker's Avatar
 AllSeeker 
Mumbai, India
Legendary Pratik_4Clover
 
Experience: Beginner
Platform: TradingView & ZerodhaKite
Trading: NIFTY, BANKNIFTY
Frequency: Daily
Duration: Minutes
Posts: 1,424 since Jan 2019
Thanks Given: 5,249
Thanks Received: 5,012

I didn't knew one could add languages to Notepad++, generally I just use Notepad on my system to do modifications and editing too, it works much better than default Pine editing window, so I'm curious if Pine could be added to the Notepad ++ too.

This is good idea, thank you

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (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

Nice work and thanks for this.

Do you know if this will help with the automatic formatting of the Easy Language code ?
Wow, that would be terrific feature.

Reply With Quote
Thanked by:
  #9 (permalink)
 rc76 
Taipei
 
Experience: Beginner
Platform: NT
Broker: IB
Trading: ES
Posts: 8 since Jul 2018
Thanks Given: 1
Thanks Received: 2

Much thanks vmodus!

Yes actually I have tried to PM plankConst on Tradestation forum, however didn't get a reply and it seems he hasn't post on TS forum since 2018?

He did show a dark background version of EL syntax for NP++, but I cannot find the xml for such syntax anyway on the forum.

Reply With Quote
Thanked by:
  #10 (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



LastDino View Post
I didn't knew one could add languages to Notepad++, generally I just use Notepad on my system to do modifications and editing too, it works much better than default Pine editing window, so I'm curious if Pine could be added to the Notepad ++ too.

This is good idea, thank you

You can pretty much design any language. I did it for an obscure language I use for Oracle EBS, so I figured EL would be great, too.

For EasyLanguage, I had my assistant modify the SQL language. I gave her a list of the known functions and this is what she came up with.

If you have a list of functions, reserved words, etc. you can always Pine (or pretty much any other language) a try.

~vmodus

Enjoy everything!
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread 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