To all coders

 

Hi all,

Recently registered and looking for looking for a weenie bit of advice which I'm sure should be a no brainer for some of you out there.

I already have a custom indicator which I'm perfectly happy with that generates buy and sell signals with blue and red dots respectively.

What I'm looking to do is convert this custom indicator into an expert adviser and add the following conditions:

1. When a red dot is generated close all positions on the chart and enter a short position.

2. When a blue dot appears close all positions on the chart and enter a long position.

If this is a bit of a noob question and there already exists a page or thread with such information kindly redirect me and I'll be on my merry way.

 

There is a MQL4 Book to learn how to code expert advisors.

 
Have your EA code use iCustom to get the indicator's values