ccou / Publications
Forum
SAR (Stop and reverse) strategy with TRADE_ACTION_CLOSE_BY ? (MQL5)
Hi, Buy 1 (+1 long) then Sell 2 (-1 short), then Buy 2 (+1 long)… Can I use "TRADE_ACTION_CLOSE_BY" for this strategy ? Is it useful, does it save transaction fees in this case ? If yes, how?? No Ctrade library please. I've spent hours trying to find a MQL5 code example !! Thank you
Simplest way to close a remote MT5 (launching a local MT5) ?
I have 2 MT5 that aren't on the same network, installed on different Windows computers. Both can trade the same account BUT I don't want them to be opened & ready to trade simultaneously. When I launch MT5 #1, I want it to close MT5 #2 (if it is opened) When I launch MT5 #2, I want it to close MT5
MQL5 : SymbolSelect(symbol,false) doesn't work correctly. Bug or not ?
Hi, int OnInit () { for ( int i= 0 ; i< SymbolsTotal ( true ); i++) SymbolSelect ( SymbolName (i, true ), false ); } Why doesn't this very simple code remove all of my MarketWatch symbols??? (except my current chart symbol) I have hundreds of symbols in MarketWatch. I want to
DEAL_FEE mql5
Hi, Is the fee charged at DEAL_ENTRY_IN, DEAL_ENTRY_OUT or twice (IN & OUT, like DEAL_COMMISSION ) ? (I'm talking about HistoryDealGetDouble(dealTicket,DEAL_FEE) ) Thanks
MQL5 : Events triggered when server disconnects and reconnects??
Hi, What events are triggered/generated when MT5 gets disconnected from the server and then reconnects? OnInit? OnDeinit? OnTick? How can I get/catch the error code ? Thanks
MQL5 : "request.deviation" & "OrderSendAsync("
Hi, My OrderSendAsync returns true (sent ok) but the order isn't executed. I suppose this is because of request.deviation (because if I put a higher value, then orders are executed). How can I determine, for sure , that my orders are rejected because of a request.deviation that is too low? Thanks
Can a long OnTick() be interrupted by fast OnTimer() ??? (MT5)
Hi, Let's suppose that I have an : 1) OnTick() function that takes 400 milliseconds to execute. 2) OnTimer() function that takes 10 milliseconds to execute. If I have EventSetMillisecondTimer(100), what will happen? : 1) Will OnTick() function be interrupted several times during its execution to run
mql5 ObjectGetString(): buggy or not? (video attached) OBJ_EDIT / OBJPROP_TEXT
Hi everyone! For some reason, if I input a string in a box on the Chart using "ObjectCreate(chart_ID,name, OBJ_EDIT ,sub_window,0,0))" and retrieve it in a global variable named "string_value" with "ObjectGetString(0, "Input_Text",OBJPROP_TEXT,0,string_value)" it only saves it with a delay, while on
MT5 Custom Symbols: Impossible to backtest a CFD if different than USD
Hi, I have 3 Custom Symbols: EURUSD3 (copy from Forex\Majors\EURUSD) US303 (copy from Indices\Indices Spot\Major Spot Indices\US30) DE303 (copy from Indices\Indices Spot\Major Spot Indices\DE30) I have imported tick data for each symbol, Charts for each symbol are ok, no problem. If I try to
What's wrong with my simple iMA indicator ?? (MQL5)
Hi! For some reason, it doesn't show anything and if I click on "Refresh", then I only see the moving average last part on the chart. I must precise that I'm offline using custom symbols . Please help! Thanks #property strict #property indicator_buffers 1 #property indicator_plots 1 #property