NexusFi: Find Your Edge


Home Menu

 





Essence# new open source .net programming language


Discussion in Traders Hideout

Updated
    1. trending_up 6,217 views
    2. thumb_up 5 thanks given
    3. group 2 followers
    1. forum 11 posts
    2. attach_file 0 attachments




 
Search this Thread

Essence# new open source .net programming language

  #11 (permalink)
 
jupiejupe's Avatar
 jupiejupe 
San Diego California
 
Experience: None
Platform: Home Grown IN Development
Broker: Broker InteractiveBrokers
Trading: CL
Posts: 146 since Apr 2011
Thanks Given: 87
Thanks Received: 68

@Jura


Quoting 
Could you provide us with a clear code example that compares Essence# with C#, NinjaScript and EasyLanguage?

Here is the same logic in essence#

I will search and see if a can find ema done in easy language so all three can be side by side.


configure.class:

superclass: EssenceIndicator;
instanceVariableNames: #(period alpha)

instance.methods:

protocol: #accessing method:
[## alpha
^alpha
];

protocol: #accessing method:
[## period
^period
];

protocol: #accessing method:
[## period: aPositiveInteger
period := aPositiveInteger.
alpha := 2.0 / (1 + period)
];

protocol: #computing method:
[## nextValue
^currentBar < 1
ifTrue: [inputStream current]
ifFalse: [inputStream current * alpha + ((1 - alpha) * inputStream prev)]
];

protocol: #updating method:
[## update
outputStream next: self nextValue
]

"Learning to Trade: The Cost Of Tuition"
- a roadmap of my lessons learned as taught by the market
Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Are there any eval firms that allow you to sink to your …
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #12 (permalink)
 
jupiejupe's Avatar
 jupiejupe 
San Diego California
 
Experience: None
Platform: Home Grown IN Development
Broker: Broker InteractiveBrokers
Trading: CL
Posts: 146 since Apr 2011
Thanks Given: 87
Thanks Received: 68

i was not able to find an ema for easy language, maybe someone can post the TS code so that all of the EMA can be seen. I found some zero lag ema but that is not playing fair to post those in a comparison.

"Learning to Trade: The Cost Of Tuition"
- a roadmap of my lessons learned as taught by the market
Follow me on Twitter Started this thread Reply With Quote




Last Updated on June 11, 2014


© 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