NexusFi: Find Your Edge


Home Menu

 





EasyLanguage Code


Discussion in EasyLanguage Programming

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




 
Search this Thread

EasyLanguage Code

  #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?
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


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


© 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