easylanguage syntax error - EasyLanguage Programming | futures io social day trading
futures io futures trading


Notices

easylanguage syntax error
Updated: Views / Replies:328 / 1
Created: by magiclaas Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

easylanguage syntax error

  #1 (permalink)
Trading Apprentice
Italia
 
Futures Experience: Advanced
Platform: Trading
Favorite Futures: Stocks
 
Posts: 1 since Oct 2013
Thanks: 0 given, 0 received

easylanguage syntax error

hi,
i got this easylenguage code:



[LegacyColorValue = TRUE];

{ ======================================= HEADER ====================================
Poly Inner Channel.
This indicator plots a regression line and two standard deviation bands around it.



====================================== DECLARATIONS ==================================}

inputs:
Len (150),
RedLineLen(150),
Order (3),
SDev(.5),{why not make these inputs}
Price (c); {this cannot be a var, for some reason}


vars:
CURSOR (FALSE),
LASTBAR (TRUE),
sigma (0),
f (0),
Y(0),
b0 (0),
b1 (0),
b2 (0),
b3 (0),
b4 (0);


VARS:
JLAOK(TRUE),
JLAPASS1(0),
JLAPASS2(0),
JLAPASS3(0),
JLAPASS4(0),
JLAPASS5(0),
JLAPASS6(0);


{=========================================MAIN PROGRAM ===================================}

VALUE98=POLY_COEFFS(price,len,order,CURSOR,LASTBAR,b0,b1,b2,b3,b4);
value97=LinearRegValue( Price, RedLineLen, 0 );

if (lastbaronchart and lastbar) or (atcommentarybar and cursor) then
begin

sigma= stddev(price,len);

y=(len-1);
f=0;
while y>(-2)
begin

value5=( b0
+(b1 *f )
+(b2*(power(f, 2)))
+(b3*(power(f, 3)))
+(b4*(power(f, 4)))
);

plot1[y] (value5,"regression");
plot2[y] (value5 + (sdev * sigma ),"Channel+1");
plot3[y] (value5 - (sdev * sigma ),"LChannel -1");
plot4[y] (value97[y], "LR Momentum" );
y=y-1;
f=f+1;
end;
end;


{
commentarycl("b0 = ", b0);
commentarycl("b1 = ", b1);
commentarycl("b2 = ", b2);
commentarycl("b3 = ", b3);
commentarycl("b4 = ", b4);
}


plotting it in Multicharts 10.0 i recive this Message: Error in study....
... trying to acces future data.Bar reference value: -1.

Can anybody tell me where is the problem in this code and give me a solution?
i use it on metastock historical data

thank you very much

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply



futures io > > > > > easylanguage syntax error

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

Fundraiser: Feeding Families in Need (ends Dec 17)

December
 

Ask Me Anything (Brokers & Platforms) w/Ilan Levy Mayer @ Cannon Trading

Dec 13
 

Battlestations! Show us your trading desks w/GFF Brokers ($750 in Prizes)

January
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Language Syntax Error Warmachine EasyLanguage Programming 3 February 9th, 2017 04:03 AM
Syntax for capturing previous bid/ask in Easylanguage mashficool EasyLanguage Programming 6 June 11th, 2016 03:27 PM
Code Syntax question Zxeses NinjaTrader Programming 2 August 26th, 2014 01:08 AM
Indicator plot syntax pequemec NinjaTrader Programming 4 August 30th, 2011 03:06 AM
Error with recoded Supertrend Line for EasyLanguage DarrenH EasyLanguage Programming 3 February 5th, 2011 01:05 PM


Tags
code, data, easylanguage, indicator, indicators, information, metastock, momentum, multicharts, neoticker, regression, standard deviation, tradestation

All times are GMT -4. The time now is 01:00 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2018-12-13 in 0.09 seconds with 14 queries on phoenix