Jump to content

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.

BrianA

Help with Easy Language

Recommended Posts

Brian

the line I posted above is not a code {If data2(60min chart) Close> Average then begin} the stuff in the parnatheses is not part of the code.

 

 

so lets say you want to reference data2 close of 1 bar ago, you would say.

 

data2 close[1]

 

data2 close of 1 bar ago, you would say.

 

data2 close

 

so lets say you want to reference data2 close of 1 bar ago when its greater Then 9 moving average, you would say.

 

If data2 close[1]> data2 average(close,9)[1] then.....bla bla bla ....just wanted to give you some examples.

 

Two ways to learn; get some books or take some EL classes...the third way is to open some/all your built in TS codes(stategy or indicator) and read them until they make sense to you. (you can do that by going into-- File--> open easylanguage document)

 

By the way because I dont do much programming thus, my EL skills are not so hot :), Infact very baisc. I will let other with more experience help you in the future.

 

GoodLuck

Share this post


Link to post
Share on other sites
Brian

 

data2 close of 1 bar ago, you would say.

 

data2 close

 

 

correction...

 

just noticed this error on my part.

 

If you want to reference data2 close (of most corrent bar that has completed) you would say.

 

data2 close

 

 

 

 

Regards..

Share this post


Link to post
Share on other sites
I am working on a strategy for Open E cry. I have the beginning but I am having trouble writing my next step. I want it to say

 

"when price moves above moving average X sell second bar"

 

If you could help that would be great or send me a PM.

 

Thanks

 

Brian

 

I guess that what you are looking for is:

 

Inputs: x(9);

vars: MAValue(0);

 

MAValue = Average (Close, x);

 

If close crosses below MAValue then sellshort next bar at market;

Share this post


Link to post
Share on other sites

I have written some code with a friends help. But it compiles, but will not back test. (shows no trades)

 

I am wondering if anyone would be willing to do a little mentoring via email with me.

 

Brian

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.