Hey guys. I coded a MACD Diveregence EA, that tells you if a type of divergence is present.
Is it possible to draw an object on the MACD indicator, when a divergence is present?
Is it possible to draw objects on an indicator window ?
-
- Trader
- Posts: 13
- Joined: Mon Sep 07, 2020 8:09 pm
- tomele
- Administrator
- Posts: 1166
- Joined: Tue May 17, 2016 3:40 pm
- Location: Germany, Forest of Odes, Defending the Limes
Is it possible to draw objects on an indicator window ?
Sure.
ObjectCreate() has the subwindow index as 4th argument. You can retrieve the subwindow index with WindowFind() by your indicator's name.
ObjectCreate() has the subwindow index as 4th argument. You can retrieve the subwindow index with WindowFind() by your indicator's name.
Happy pippin, Thomas
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so. (Mark Twain)
Keep the coder going: Donate
-
- Trader
- Posts: 13
- Joined: Mon Sep 07, 2020 8:09 pm