Problem : Use "Once a day" but open many trades a day
-
Hi Experts!
I need help to chase the candle.
I use Once a day option instead it open many trades.
Please check my EA attached. Thanks. -
@biztet First check your conditions a they appear always to be true - hence an opened trade gets closed immediately.

-
@trader-philipps is it the correct way is to set the Candle ID to 0 also for close trade?
-
@biztet Well, I prefer to use candle ID1, but you can use candle ID0 espcially for the candle open. However, your conditions don't make much sense as they are always true! Maybe you can formulate what you try to achieve and we might find a solution for it. At the moment you compare if the open price of candle ID0 is equal to the open price of candle ID0. This is always the case as well as the value of 1 equals 1.
-
Thanks. I'll try.
-
Basically, this is what i'm trying to achieve.

Open BUY & SELL on Open Price.
Close BUY if Open Price of new candle higher than the trade open price.
Close SELL if Open Price of new candle lower than the trade open price.That is all.
-
@biztet But that is differnent to the project description in the mq4 file in first post, right?
-
-
SUPERB!
yes, its kind of dangerous. will consider SL for it and change to Once per bar to use H4 instead.
Or change to Pending order with distance pips.my first attempt should be safer because it will close all trades on Daily candle close and use trailing. will also test for H4. that's the logic that i can think of for now without using indicator.
-
@biztet Take profit is not the issue with that strategy. I let run it on a daily chart on GU for 2019.

It's like how many people fail with their heding strategy with a number of open trades on the edges of the trading range. Furthermore if trades are open for a longer time, swap will be probably against you either,
