I'm using OnTradeTransaction() to monitor trades. Is there a way to tell if the deal is being opened or closed? Right now I'm filtering the callbacks using trans.type == TRADE_TRANSACTION_DEAL_ADD Thanks
Am I doing this right at all? I have an indicator (it's BrainTrend2Sig from the codebase). It outputs a buyarray[] and a sellarray[] In my EA I first link to that indicator indicator_handle= iCustom ( NULL , PERIOD_CURRENT , "BrainTrend2Sig"
I'd like to use the storage but I don't see the activate command on the Navigator menu: https://www.metatrader5.com/en/metaeditor/help/mql5storage/mql5storage_connect I have logged into the MT5 community (at least I think I'm logged in -- how to
So I have an indicator and I print some stuff to the chart in OnInit(). It doesn't need to occur regularly. Is there a way to call OnInit() from the chart? To reload the indicator I guess. I was thinking Refresh would do it
This code never seems to apply a background color to my text OBJ_LABEL . The background is always clear. Am I missing something? Thanks. //+------------------------------------------------------------------+
So I'm having an odd problem this morning. The DOM is ticking but my chart is not. It's either "waiting for update" or no ticks on it. I've tried the obvious -- reboot -- changing profiles -- opening a new chart. How can I reset
Can I not use SendOrder() in the OnTimer() function ? I want to look for a local file and then send an order when it appears. I have the code, but the function returns 4014. Thanks
So I created a text object and display it, e.g ObjectCreate(0,labelID,OBJ_LABEL,0,100,100); ...but if its output changes the old text doesn't disappear. How to refresh the chart to remove the old text? Thanks
Sorry, newbie here: I have the NQ futures contract back to August in a daily chart. I'm trying to program an EA. I only get 6 out of the 101 daily bars in the strategy test: 2016.12.06 08:22:47.037 Core 1 connecting to 127.0.0.1:3000