Hello, I got this indicator named HG_0001a and I'd like to build an ea that will generate a buy signal when the indicator color will turn blue from red or yellow, and will generate a sell signal when the indicator will turn red from blue or yellow. Now the indicator codes are:
0 = blue 1 = red 2 = yellow
How do I tell the Ea I want to buy the first bar that turns the indicator blue and sell the first bar that turns the indicator red? I'm attaching the indicator itself, and a pic with the signals I should get with it. Thanks for any help.
alexpio
Attachments: |
molanis help.gif [ 57.62 KiB | Viewed 4297 times ]
|
HG_0001a.ex4 [2.8 KiB]
Downloaded 477 times
|
|