Trendline Breakout
-
(this is an old topic but ... posting for beginners )
Simple Sample Exmple EA - to understand how to draw Trendline and use it to open trade in an EA ( for beginner someone like me )
Use this example only with Demo account and to learn how it is working. I am not responsible for your money losses.
-
Hi,
I know that this has been asked several times before, however the posts were very old and images were deleted so I couldn't get an answer.
Is it possible to detect trendline breakout?
I tried to do it with this EA: https://fxdreema.com/shared/Pb6w7buQb using "Trendline Price Level" but I think that price level is the first point where we use it to draw trendline (it always writes the same number)

Which block should I use? Is there a way to get information from trendline once per tick?
Thanks
-
In block 5 set the first parameter to No
-
Thanks a lot for the help

I made the correction now it is like this http://prntscr.com/d6vc07 http://prntscr.com/d6vc07
EA link: https://fxdreema.com/shared/11e3sJ5ye
It writes "0" as price level when the price is above the candle which we state in the "Draw object" block as candle time and candle price. Is it normal?
I don't know if it is possible but it would be great if:
- I can get "price level by candle ID" as price itself for both the candle and the line. Eg. "1.085=candle close price" and "1.081=Trendline price"
- EA can close trade When price breaks out current trend line price level: Eg: when candle close drops from 1.085 to 1.080, 1.080 < 1.081 --> Close Trade
Thanks
-
Reverse that trendline. I think it was ok in my tests, but if this is what you got from the EA... find those "Ray" option or switch coordinates. The idea is for the line to continue to the future.
By the way now I will start to update fxDreema, so you (and not only you) will probably be forced to stop working for now

-
@rp13579 Thank you very much for sharing it.