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
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
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
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
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
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()
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
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
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
#import "kernel32.dll" int CreateFileMappingW( int , int , int , int , int , const string ); int GetLastError (); #import void OnStart () { int hMapFile=
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
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
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