Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

• ## Welcome Guests

Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

# Easylanguage Error

## Recommended Posts

[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 ©; {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);

}

it give me an error : trying to access future data.Bar reference value:-1

anybody can help me to solve this error?

thank you

USE CODE BOX

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×

• 1
• 5
• 0
• 0
• 0
• ### Posts

• re racISM Seek the truth. Confront the lies.   Any white people who are racist are racist out of fear ... any 'supremacy' beliefs are compensatory.  Same with blacks... Seek the truth. Confront the lies.   Contrary to what you've been taught in school and now in culture, white people did not invent slavery.  Nor have they applied the most consistently horrific practices of slave owners, historically or currently.   Contrary to what you've been taught in school and now in culture, in fact, white people have done more to eradicate slavery / humans as property from the face of the earth than any other race - ever.   Seek the truth.  Confront the lies.  If you're white, don’t allow yourself to be guilted.   That just compounds the issues and divisions.   You are not individually or collectively responsible for the exploitation of minorities by a small percentage of psychopaths who happen to also be the same ‘race’ as you are ...  just because black people’s ‘self esteem’  generally needs to rise - especially those ‘trapped’ on the concrete plantations - is no reason your’s needs to fall ... don’t play into ivory tower false dialectic psyops designed to enslave EVERYBODY!   “A man’s rights rest in three boxes: the ballot box, the jury box, and the cartridge box.”  Frederick Douglass, 1867  civil rights leader in response to post-Civil War segregation laws... my god was that boy and this boy unwoke or what
• The intent of this post is to divert your attn. from the lie campaign about the appearance of improprieties by Hunter and Joe Biden...“The emails are Russian” is going to be the official dominant narrative in mainstream political discourse, and there’s nothing you can do to stop it. Resistance is futile. It will likely be too deep for most ‘millennials’  racISM https://www.realclearpolitics.com/articles/2020/10/12/the_civil_rights_legend_who_opposed_critical_race_theory_144423.html marxISM https://ammo.com/articles/cultural-marxism-gramsci-how-disciples-of-gramscian-marxism-subverted-america
• EURJPY UPSIDE TRACTION OVERPOWERS BEARS, EYES 124.00 LEVEL   EURJPY Price Analysis – October 16 EURJPY is accelerating from a low of around 123.00 as upside potential prevails over sellers for another session on Friday. The cross has so far managed to hold above the 123.00 level. Given the uncertainty, it would be a mistake to set an end date for the response to the pandemic, European Central Bank (ECB) governing board member said on Friday. Key Levels Resistance Levels: 127.07, 126.46, 125.00 Support Levels: 123.00, 122.37, 119.31 EURJPY Long term Trend: Ranging As noted on the daily chart, if selling momentum picks up additional pace, then the pair is expected to continue to the next relevant area around 123.00, where it sits low in October. Further south, there is critical horizontal support just above the 122.37 level. While the RSI recovery from the near oversold area suggests a further recovery in the pair, a clear break of the 124.00 marks becomes necessary for the EURJPY bulls ahead of the 124.43 level and the weekly high near the 125.00 level. EURJPY Short term Trend: Bearish EURJPY intraday bias remains bearish, with 38.2% retracement from 114.39 to 127.07 at 122.37. A solid break there would confirm a resumption of the entire corrective fall from 127.07 and aim a 61.8% correction at 119.25, close to the pivotal support at 119.31. On the other hand, however, a break of the 125.00 level will bring the upward trend back to retest the 127.07 level. Conversely, a clear dip below the 123.00 level could plummet towards the 120.00 psychological magnets.   Source: https://learn2.trade