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.

TEAMTRADER

Mt4 Indicator Trendlines

Recommended Posts

Does anyone know a coder who would be able to code a trend line on an indicator?

A simple example attached.

Thanks

 

if you can define the criteria of the trendline,

it can be coded.

Share this post


Link to post
Share on other sites

The objective is to have a series of diagonal lines superimposed on indicators.

There are two criteria.

The easier of the two is a line that has a starting point based on the indicator numerical value above/below a set value, eg, 95 - 185.

So a 'support' line would be below zero starting at an adjustable value from -95 to -185 and a resistance line above zero starting at an adjustable value from +95 to +185. It will go over/under the closing values of the indicator.

The other criteria for the line is based on price and where there are price highs and lows.

The superimposed indicator could also show a vertical line on the indicator itself so the lines can also have a start point based on price.

For example, taking the CCI indicator, the parameters would need to be user set for the 'period' setting, to the levels (values) from which the line would start.

Is that enough information or do you want to get more?

TEAMTRADER

Share this post


Link to post
Share on other sites
....

Is that enough information or do you want to get more?

TEAMTRADER

 

All I can see is a blurb of something...

 

you need to convey your idea in a logical step-by-step fashion.

because the computer cannot read your mind,

it can only take instructions

and you have to give the instruction as if you are drawing the line by hand.

 

try writing your ideas one at a time,

write them out in steps...

one line at a time,

one idea/step per line,

if you have more than one idea in a single line,

the computer won't understand you.

 

eg...

if this bar's high is higher than previous bar's high, then

I would consider a peak is made.

if a peak is made, then

starting drawing a line at the peak.

 

.

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.