L linux_usr Trader Oct 20, 2023 78 3 19 40 Dec 2, 2024 #1 Anyone put me on the correct path to modifying a bot to open a trade on signal "current candle" not on close. thanx
Anyone put me on the correct path to modifying a bot to open a trade on signal "current candle" not on close. thanx
Enivid Administrator Staff member Nov 30, 2008 20,329 1,768 144 Odesa www.earnforex.com Dec 2, 2024 #2 An expert advisor can open a trade each tick. It probably has more to do with how you are checking for a signal. If you shared the relevant section of the code, perhaps, it would be possible to tell what to do.
An expert advisor can open a trade each tick. It probably has more to do with how you are checking for a signal. If you shared the relevant section of the code, perhaps, it would be possible to tell what to do.
L linux_usr Trader Oct 20, 2023 78 3 19 40 Dec 15, 2024 #3 i am just started out learning. i still cant find anything to get the mt5 template to use current instead of close candle Code: for (int i = total - 1; i >= 0; i--)
i am just started out learning. i still cant find anything to get the mt5 template to use current instead of close candle Code: for (int i = total - 1; i >= 0; i--)
L linux_usr Trader Oct 20, 2023 78 3 19 40 Dec 15, 2024 #4 Code: input ENUM_CANDLE_TO_CHECK CandleToCheck = CURRENT_CANDLE; Code: enum ENUM_CANDLE_TO_CHECK { CURRENT_CANDLE = 0, // Current candle CLOSED_CANDLE = 1 // Previous candle }; am i getting close to the correct code? compiles ok need to test it
Code: input ENUM_CANDLE_TO_CHECK CandleToCheck = CURRENT_CANDLE; Code: enum ENUM_CANDLE_TO_CHECK { CURRENT_CANDLE = 0, // Current candle CLOSED_CANDLE = 1 // Previous candle }; am i getting close to the correct code? compiles ok need to test it