ccou
ccou
ccou
Added topic 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
ccou
Added topic 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
ccou
Added topic 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
ccou
Added topic 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
ccou
Added topic 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
ccou
Added topic 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()
ccou
Added topic 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
ccou
Added topic 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
ccou
Added topic 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
ccou
Added topic iMAOnArray : Where's the bug?
void OnStart ()   {    double tab[]= { 1.0 , 2.0 , 3.0 , 5.0 , 9.0 , 15.0 , 32.0 };    Print (iMAOnArray(tab, 0 , 3 , 0 , MODE_SMA , 0 ));   } Result : 0.0 !! Thanks
ccou
Added topic MT4 order threads limitation??
Hi, I've been told that MT4 can only support 16 order threads. Is it true ? How can I verify this limtation, technically ? Thanks
ccou
Added topic MQL5 CreateFileMappingW (#import "kernel32.dll") Invalid Handle ??
#import "kernel32.dll"    int    CreateFileMappingW( int , int , int , int , int , const string );    int    GetLastError (); #import void OnStart () {      int hMapFile=
ccou
Added topic MT4 build 1170 Strategy Tester : How can I backtest with Spread = ZERO ?
Hi, I want to backtest my EA with Spread = 0 (I have my reasons). If I set Spread to 0, the " Strategy Tester Report" shows "Spread = Current instrument Spread" (instead of 0) ! How can I force MT4 to use a ZERO spread? Thanks
ccou
Added topic MQL4: Is it possible to chart a value every 5 seconds?
Hi! I have an OnTimer() function that calculates a new value for a variable every 5 seconds. This variable (a double) varies from 5.0 to 50.0 (approximately). 1) Is it possible to chart this variable every 5 seconds? If yes, how? 2) Is it possible to
ccou
Added topic How to sort an array and keep track of indexes ?
Hi! Let's suppose I want to sort "valPair" and keep track of its corresponding "labelPair" index. string    labelPair[ 5 ]=  { "AUDJPY" , "AUDUSD" , "CADJPY" , "CHFJPY" , "EURAUD" }; double    valPair[ 5 ]; for ( int i=
ccou
Added topic "ObjectSetText" doesn't display my whole text
Hi, I have a horizontal line that shows a price. I want to put a text on this line but for some reason, I only see the beginning of my text on the right of my chart. How can I see the whole text? Thanks! ObjectCreate ("price", OBJ_HLINE , 0 , 0
ccou
Added topic Why does ObjectFind() never find my object??
Hi everyone, Why does ObjectFind() never find my object?? Thanks! #property strict double t_SL[ 1 ]; int OnInit ()   {    t_SL[ 0 ]= Bid ;       ObjectCreate ( "t_SL" + IntegerToString ( 0 ), OBJ_HLINE , 0 , 0
ccou
Added topic How to increase SL, TP, Entry lines thickness?
Hi everyone, 1) Is it possible to drag and drop the SL & TP without having to press teh ALT key? §If yes, how? 2) I have a UHD monitor and the SL/TP/Entry price lines are much too thin. How can I increase their width? Thanks
ccou
Added topic TEXT FILE: I can only read the first line! Why?? Thanks!
Hi everyone! I want to read this text file : 237      DC       8.9      12.5 217      DC       7.5      10.6
ccou
Added topic Why don't Comments (buy, sell or closeall) display when I click on the buttons??
Hi!  Thanks ! #property strict #include <stdlib.mqh> #include <Controls\Dialog.mqh> #include <Controls\Button.mqh> extern string sVisualSettings= "<<=== Visualization Settings ===>>" ; // <<=== Visualization
12