Hi,
I have written a simple ea. If price cross 50 ema then trade. The problem i have is when using every tick method. Right now if I use that method, the current candle meets the criteria, it will open the trade. The target is 5 pips profit. So if price hits the target then it takes profit, but right after it takes the profit, since it is in the same candle, it again opens a trade on the same candle!This is becuase i am using every tick method. Is there a flag or a function that says once the current candle has been traded, do not trade again until the next candle has appeared. Any advice would be greately appreciated.. Thank you
DojiSan
I have written a simple ea. If price cross 50 ema then trade. The problem i have is when using every tick method. Right now if I use that method, the current candle meets the criteria, it will open the trade. The target is 5 pips profit. So if price hits the target then it takes profit, but right after it takes the profit, since it is in the same candle, it again opens a trade on the same candle!This is becuase i am using every tick method. Is there a flag or a function that says once the current candle has been traded, do not trade again until the next candle has appeared. Any advice would be greately appreciated.. Thank you
DojiSan