I would say just before . . .
return(0);
- Article "Transferring an Indicator Code into an EA code"
I didn't see anything overly wrong except you need this form:int IndCounted; int init(){ IndCounted = 0; } : limit = IBARS - IndCounted - 1; for(int bar = limit; bar >= 0; bar--){ : } IndCounted = IBARS - 1; // All bars done except bar 0.
- where do I make my trade operationsAfter the FOR loop, not inside.
RaptorUK & WHRoeder, your expertise is very much appreciated! I will try your recommendations.
Thank You Again.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm in the process of completing my first complex EA and I'm not 100% sure that I have inserted my Trade Logic Operations in the proper area. All this EA does is look for the cross of the TDI(RSI Signal Line & RSI Price Line). I imported the actual code that retrieves the 2 TDI values(Signal Line/Price Line) from the "TDI Red Green Indicator" and by going through the Article "Transferring an Indicator Code into an EA code" I'm hopeful that I ported everything over properly. Since the biggest adjustment was the Indicators Buffers Emulation along with replacing IndicatorCounted(). The explanation was fairly straightforward and a significant portion of the housekeeping duties I just copied over directly. However, I'm having problems understanding where I put my actual Trade Operations. Since Indicators are meant to display graphical representations of the data array I understand the idea of traversing through the indicator buffers in order to output to the Terminal. However in EA's my understanding is that I am for the most part looking at the current (0) bar checking for my optimal conditions(Crossovers) in order to execute my trade. I decided not to use the iCustom() function in this EA for the reasons stated in the article. Thus the question, where do I make my trade operations(see lower half of code)?
All helpful replies, I thank You in Advance!
My Current Source Code