- Comments and Forex Technical Analysis from BJF Trading Group
- Detect which number candle is the highest
- what is the good way to detect if a symbol is existing?
Which is the best way to detect if the price has touched or crossed a trend line
if(previous_price<previous_trendline_value and price>=trendline_value
or
previous_price>previous_trendline_value and price<=trendline_value)
then
you have a touch or a cross
Previous can be previous tick, previous bar's high/low...
How do you think? For position=trendline start to threadline end (iBarShift) get trendline position (ObjectGetValueByShift) touched = H >= positiion & positiion >= L. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
if(previous_price<previous_trendline_value and price>=trendline_value
or
previous_price>previous_trendline_value and price<=trendline_value)
then
you have a touch or a cross
Previous can be previous tick, previous bar's high/low...
Thanks angevoyageur that i know. Its the part for getting trendline_value for the bars that is a challenge like if it were low price we just use Low[...] or iLow(...). Is there such a function for trendline or maybe can it be drawn using a buffer?
Ive found this. https://docs.mql4.com/objects/objectgetvaluebyshift . I think its a possible solution. Thanks WHroeder for that bit but don't be rude to forum users im a coder too but its long since i read book and iv'e never done trendline before.
bravo, ....
How do you think? For position=trendline start to threadline end (iBarShift) get trendline position (ObjectGetValueByShift) touched = H >= positiion & positiion >= L. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
that was big help it isn't rude to say this, you didn't show any attempt how you tried
also angevoyageur has given a correct answer to your question
you had to ask also for how do i get trendline value you didn't and WHRoeder did already
bravo, ....
that was big help it isn't rude to say this, you didn't show any attempt how you tried
also angevoyageur has given a correct answer to your question
you had to ask also for how do i get trendline value you didn't and WHRoeder did already
How do you think? For position=trendline start to threadline end (iBarShift) get trendline position (ObjectGetValueByShift) touched = H >= positiion & positiion >= L. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
It's to bad you are hard of reading. And for someone that has been on this site for THREE years you really do need to RTFM
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use