NexusFi: Find Your Edge


Home Menu

 





EasyLanguage Code


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
 pequemec 
Elche, Spain
 
Experience: None
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 14 since Jul 2009
Thanks Given: 6
Thanks Received: 1

Hello all.

Please, I need translate the following code (EasyLanguage):

 
Code
[LegacyColorValue = true]; 

arrays: f[8](0); // Using indexes 1 to 8
vars: tmp(0), result(0);
vars: cflag(false);

f[1]=0;
f[2]=0;
f[3]=0;
f[4]=0;
f[5]=0;
f[6]=0;
f[7]=0;
f[8]=0;
tmp = f[1];
f[1] = f[2];
f[2] = f[3];
f[3] = f[4];
f[4] = f[5];
f[5] = f[6];
f[6] = f[7];
f[7] = f[8];
f[8] = tmp;
f[1] = CELSqrt (f[1]);
f[1] = CELAdd (f[1], v1[29]);
f[1] = CELAdd (f[1], v1[33]);
f[2] = CELSubtract (f[2], f[1]);
f[1] = CELAdd (f[1], v1[23]);
f[1] = CELAdd (f[1], v1[6]);
f[1] = CELMultiply (f[1], v1[11]);
f[1] = CELSubtract (f[1], v1[29]);
f[1] = CELAdd (f[1], v1[25]);
f[1] = CELSqrt (f[1]);
f[2] = CELAdd (f[2], f[1]);
f[1] = CELSubtract (f[1], f[1]);
tmp = f[1];
f[1] = f[2];
f[2] = f[3];
f[3] = f[4];
f[4] = f[5];
f[5] = f[6];
f[6] = f[7];
f[7] = f[8];
f[8] = tmp;
f[1] = CELAbs (f[1]);
f[1] = CELAdd (f[1], v1[23]);
f[1] = CELAdd (f[1], v1[6]);
f[1] = CELMultiply (f[1], v1[11]);
f[1] = CELSubtract (f[1], v1[29]);
if (CELNot (CELIsFinite (f[1]))) then begin
f[1] = 0;
end;

result = f[1];

to C# (NinjaScript). Can you help me?

Regards.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
Trump Media to sell instant access to market-moving soci …
Traders Hideout
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
EA
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098


what does it do?


Reply With Quote
  #4 (permalink)
 pequemec 
Elche, Spain
 
Experience: None
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: ES
Posts: 14 since Jul 2009
Thanks Given: 6
Thanks Received: 1

This is an mathematical array, the rest more or less I understand. It is a portion of a trading system described by Mike Barna in FuturesMag created with Trading System Lab software.

Here the link.

Here the system.

Here the performance.

You can help me?


Started this thread Reply With Quote




Last Updated on June 21, 2013


© 2026 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 - Downloads - Top
no new posts