Getting the color of my indicator and make a expert advisor!

 

Hi, I'm using a indicator who gives me 3 colors.

How can I read that color and set an "if" to buy or sell? exist a function ColorGet()?

Please,

Regards, Bruno

 
brunobrazil:

Hi, I'm using a indicator who gives me 3 colors.

How can I read that color and set an "if" to buy or sell? exist a function ColorGet()?

Please,

Regards, Bruno


About what do you speak....

Do you know how many indicators you can use giving a color

So your question is for me can't answer this

 
deVries:


About what do you speak....

Do you know how many indicators you can use giving a color

So your question is for me can't answer this


deVries,

I use moving average, but it changes color.

turns yellow, green and red.

but I can not read this in code.

I need to make a function that reads a color.

for example.

when changing from yellow to green, BUY

when changing from green to red, SELL

Could you help me?

 
brunobrazil:


deVries,

I use moving average, but it changes color.

turns yellow, green and red.

but I can not read this in code.

I need to make a function that reads a color.

for example.

when changing from yellow to green, BUY

when changing from green to red, SELL

Could you help me?


If you don't have the code but only a ex4 file then you can try with iCustom first checking

if there are indicatorbuffers and read what values do they give check on chart

Also look to Objectslist on chart if you can find objects placed by the indicator on your chart

Be sure your indicator is not a repainting one

 
brunobrazil:
Hi, I'm using a indicator who gives me 3 colors.
How can I read that color and set an "if" to buy or sell? exist a function ColorGet()?
  1. Open the data window (control-D) and mouse over the bars and find out which buffers correspond to which color.
  2. Use iCustom to read the buffers. Detailed explanation of iCustom - MQL4 forum
Reason: