ZeroCafeine / Publications
Forum
Best Alerte from MT5 terminal: Android Notification OR Email OR ....
Hello everyone, I hope you are all well. I am currently setting up notifications from the MetaTrader 5 software on my VPS for long-term trading. What do you consider to be the best alert systems to ensure that you don't miss any alerts? 1) There are push notifications on the MT5 app on Android. 2)
add risk every month ?
Hi everyone, I hope you're well! In my EA, I want to risk $xx every month, So each month I need to add an amount to risk, What is the best way to do this I was thinking of OnTimer( ) which does this action every month? Best Reguards, ZeroCafeine
MQL5 Forum Notification ?
Hi everyone, I hope you're well, when I get the little notification like on the picture what does it mean? Best Reguards, ZeroCafeine 🙂
Search button in Toolbox / Code Base tab?
Hi everyone, I hope you're well, Do you know if there is a search button in the toolbox in the codebase tab? Best Reguards, ZeroCafeine
Trade.RequestPosition() alway return 0 ?
Hi everyone, Do you know why the RequestPosition method of the CTrade class always returns 0 ? In other words, what is the simplest solution for retrieving the ticket or identifier of the position that has just been opened using my CTrade class? I thought I saw in the forum a solution to compare the
Same Ticket number for Order and Position ?
Hi everyone, hope you're well I have a confusion between position ticket numbers and order numbers, Unless I'm mistaken, yesterday in my backtest I found myself with an identical ticket number for a position and an order? Is this possible? Should I use the unique Deal ticket numbers? Try to read all
2 Time Frame EA
Hi everyone, do you have any idea why I get this error when backtesting? Best Reguards, ZeroCafeine. int OnInit () { Handle_MACD_D1 = iMACD ( _Symbol , PERIOD_D1 , FastEMA_D1, SlowEMA_D1, SignalSMA_D1, PRICE_CLOSE ); Handle_MACD_H4 = iMACD ( _Symbol , PERIOD_H4 , FastEMA_H4, SlowEMA_H4
PositionSelectByTicket and Deselect ?
Hi everyone Just as there's a function for selecting a position by ticket " PositionSelectByTicket ", there's also a solution for deselecting a position, although I don't think this will be of much use, since according to the documentation, even when a position doesn't exist, you can still retrieve
display String : TRADE_RETCODE_DONE ?
Hi everyone, Is it possible to display the constant as text, for example: TRADE_RETCODE_DONE , instead of the return code: 10009 , I thought of the EnumToString function, but to do that I'd have to get the enumerator name? Thank you in advance for your insights Best Reguards, ZeroCafeine 😉
1 position with multiple SL
Hi everyone, I hope you're all well. how to have several stop losses for a single position pls ? For example: I open one position of 0.10 lot and I would like to have a different stop loss for each 0.01 lot, Do I have to open 10 positions of 0.01 lot ? it's not possible with PositionModify Thank you