I have another project assigned to you. Based on your proper support and effective collaboration we are able to make my code more effective. Let me explain you more in detail.
Introduction of my EA !MMIC EAv1.2:
I have an EA which is called as !MMIC EA v1.2. in this EA , it auto executes the entry positon trade only ONCE which is either a BUY or SELL on different time frames like , 1M TF, 5M TF , 15M TF , 30M TF, 1H TF, 4H TF, Daily , Weekly and monthly TF which based on certain algorithms or Moving Average it takes the positions. But I choose Daily TF on the chart to execute my order .I have attached you the EA for your reference also.
Example : If EUR USD on 10th September 2014 gets the First Entry Signal as BUY (Daily TF )and on the Expert Advisor properties I have given 1 lot and also mentioned different parameters such as SL , TP and Trailing Stop loss and Start it executes the position and goes on till the Next Signal Changes to SELL. When, the Signal changes to SELL let say on 21st September, it closes the previous BUY positon and executes the new SELL Signal and this process continues.
I would like to integrate the logic for the code of same as the one you created where it will first execute my EA!MMIC EA v1.2 where the input for the entry signal position for buy/ sell OR entry position will come from my EA !MMIC EA v1.2. Now once the Entry signal gets generated form my EA !MMIC EA v1.2 then if there is X (Example 30 PIPS) pips movement is in the same direction of LAST position then open another position in the same direction only.
Now based on my EA !MMIC EA v1.2 , if the signal changes to SELL then it should close only the first entry signal BUY position and execute the SELL but whatever B I have send you a detail mail for the same ..please have a look at it