Is it possible to draw objects on an indicator window ?

Post Reply
chiefkeef
Trader
Posts: 13
Joined: Mon Sep 07, 2020 8:09 pm

Is it possible to draw objects on an indicator window ?

Post by chiefkeef »

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?
User avatar
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 ?

Post by tomele »

Sure.

ObjectCreate() has the subwindow index as 4th argument. You can retrieve the subwindow index with WindowFind() by your indicator's name.
Happy pippin, Thomas :-BD

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
chiefkeef
Trader
Posts: 13
Joined: Mon Sep 07, 2020 8:09 pm

Is it possible to draw objects on an indicator window ?

Post by chiefkeef »

Thanks alot
Post Reply

Return to “Coders Hangout”