I want to settle with the next candle!
Hello. This is a little fx.
Well, as the title suggests,EA CreatorI built a mechanism to settle on the next candle based on the source code output by
the next candle forming after entering with a strongly growing candle.
In rough terms,EA Creatoruses the “Enter only at the opening price” option in the settings.
I found the following code in the source where the conditions were set somewhat arbitrarily
if(PreviousBars == Bars || Volume[0] > OpenPriceVolume) signal = 0;
and added it to the close processing.
signal = 0;
if(getOrderProfitPips("0", 0, true) >= Number_value_1_2_2) signal = 1;
// Even if the signal becomes non-zero, if it is not the start of a candle, set to 0
if(PreviousBars == Bars || Volume[0] > OpenPriceVolume) signal = 0;
if(signal != 0 && getOpenLots(Magic1, OP_BUY) != 0) {
closePosition(Magic1, OP_BUY);
}How is it??
It's simple, isn’t it.
See you next time.
Download the file from below.
× ![]()