ZeroCafeine
ZeroCafeine
Friends 3
ZeroCafeine
Added topic 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 );
ZeroCafeine
Added topic 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
ZeroCafeine
Added topic 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
ZeroCafeine
Added topic 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
ZeroCafeine
Added topic MQL5 Notifications
Hi everyone, I hope you're all well, I'm still having trouble with the notification, can someone explain to me what this is? I have the feeling this is the first time I've seen this.  Best Reguards
ZeroCafeine
Added topic 4 Objects Trade in the same EA ?
Hi everyone, In the same I want to : - Buy Limit( BuyLimit ) - Buy Market ( Buy   ) - Sell Limit ( BuyLimit   ) - Sell Market (  SellLimit ) Would you recommend creating 4 instantiations of the CTrade class? To better
ZeroCafeine
Added topic Scalping Hotkeys shortcut project
Hi everyone, I hope you're well! I've started programming a little expert advisor. When I press a button, it draws me the TP, Entry and theoretical SL lines, with the position size calculated according to the risk I've predefined, as shown in the
ZeroCafeine
Added topic Searching for capital letters in Visual Code Studio
Hi everyone, I hope you're well, I'm writing this message in case it might help a few people simply about finding upper and lower case letters in Visual code studio, as mql 5 is case sensitive, I made a small mistake because I had 2 variables
ZeroCafeine
Added topic How do I manage friends' lists?
Hi everyone, I hope you're well! 😉 How do you handle new friends? I receive requests almost every day, which in itself doesn't bother me - I refuse categorically anyway, What bothers me is a rude person who never says hello, who doesn't send you a
ZeroCafeine
Added topic Can someone explain this to me? Code from Vladimir Karputov.
input ushort    InpSignalsFrequency  = 10 ;       // Search signals, in seconds (< "10" -> only on a new bar)           datetime
ZeroCafeine
Added topic Stop Level = 0
Hi everyone, I hope you're well, I have a demo account with a broker and I have a stop level of 0, is this normal?  how do you interpret this? Where's the trick or the trap?  😉 Thank you in advance for your insights  Best Reguards
ZeroCafeine
ZeroCafeine
I'm really sorry I didn't learn to program on MQL5 earlier. 😊
ZeroCafeine
Added topic Structure type variable OR Object ?
Hi everyone, I'm trying to program cleanly, what do you recommend for storing trade information and being able to manipulate it until the trade is closed? I'm hesitating between creating a structure type variable , and creating a class with object
ZeroCafeine
Added topic how can Orders, Positions and Deals be linked together?
Hi, how can Orders, Positions and Deals be linked together?  Is there a way to link them apart from the magic number? Best Reguards, ZeroCafeine
ZeroCafeine
Added topic Line Object and Label on the right
Hi  I create a line object OBJ_HLINE and then I create a label object OBJ_LABEL  to put just below it,  I can retrieve the line's y coordinates, but how do I display the label completely on the right because a line can't see
ZeroCafeine
Added topic how to move an object on the graph ?
Hi, What's the easiest way to move an object on the graph? I've seen that you should use: CHARTEVENT_OBJECT_DRAG, But I've only found this thread on the subject, a useful link or sample code would be welcome 😉 Best Reguards, ZeroCafeine
ZeroCafeine
Added topic CHARTEVENT_KEYDOWN keystrokes And various keyboards
I'd like to use CHARTEVENT_KEYDOWN with the event handler OnChartEvent(), To detect keystrokes and assign them to functions,  I'm noticing that the keys are not the same depending on the type of keyboard used in Windows (AZERTY / QWERTY /
ZeroCafeine
Added topic Sleep function and Closing all trades
Hi everyone, How to close all positions instantly, without using the Sleep function as in the following code pls ? bool CloseAllPositions(){    int total = PositionsTotal ();    for ( int i = total - 1 ; i >= 0 ; i--){
ZeroCafeine
Added topic Manage multiple monitor with MT5 ?
Hi everyone, i have the impression that multiple monitor management is not up to scratch with metatrader  I've tried saving and saving as, and when I change the profile using ctrl + F5, I no longer have the same screen layout, I've been trying
ZeroCafeine
Added topic EA open & close position with keyboard ?
hi everyone I am looking for a free expert advisor who can open and close positions with keyboard shortcuts please? I would like to have a base so that I can modify it for keyboard shortcuts. Best Reguards, ZeroCafeine 😊
123