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.

daedalus

Easylanguage Projection of Price Levels...

Recommended Posts

Simple idea, at least I thought until I tried to code it up.

 

I am trading range bar charts and I would like to be able to have an indicator that plots the given high and low range of the current bar as it unfolds so that I can correctly place stops without all the mental math.

 

i.e.... if the bar currently has a 2 tick range from 985-987 and i'm trading a 4 range bar that its going to tell me based off the current range that a new bar will be created at a move to 983, or at a move to 989... get it?

 

I guess my only question is how can I set a plot in easylanguage to go a set amount of ticks on top of the given price?

 

I had some examples of this in my code library that I cannot seem to dig up... anyone got any ideas? Is it as simple as...

 

" Plot1(Close+.0001, "Buy", Green) " ?

Share this post


Link to post
Share on other sites

Drrr. I figured it out and got it working perfectly...

 

Thought I would share...

 

Inputs:
RangeSetting(.05);

Variables:
None(0),
Value1(0);

None = AbsValue(High-Low);
Value1 = RangeSetting - None;

//High
if Close >= Low and LastBaronChart then
begin
plot1(High+Value1, "BL");
end
else
NoPlot(1);

//Low
if Close <= High and LastBaronChart then
begin
plot2(Low-Value1, "SL");
end
else
NoPlot(2);

 

Just change the range setting to the right setting for that range you are trading...

 

Cheers!

Share this post


Link to post
Share on other sites
Yup....

 

Mine does the same thing, just not as beautifully! lol. Where did you get yours? You're on OEC as well aren't you?

 

i made it. ill post my code after i get some lunch. oh yeah runs fine on oec

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.