- Because you use SYMBOL specific values
OrderSend(mSymbol, OP_SELL, Lots, Bid, 3, mStopLoss, mTakeProfit, "Sell Order", mNumber, 0, Blue); if(mType == "Buy" && OrderFind(mNumber) == true && Bid >= mClose)CloseOrder(glbOrderTicket); OrderClose(Ticket, OrderLots(), Bid, 0);
- You don't filter by magic number
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
You don't test your return codes What are Function return values ? How do I use them ? - MQL4 forum so you don't know what's going on.
Oh no I missed that thanks for spotting that.
Any Idea why my journal is spitting out no errors and Print is not working? Journal would have said something like Ordersend error 130
Why aren't you testing the return value and reporting the error ?
Ok I can do that, it works without it in strategy tester.
Sorry for replying so late, I dont get alerts on these new messages.
Uhm print does not debug for me, I had to use Comment. Not sure why this code is not printing, must be dll or something, Im not sure.
Sorry for replying so late, I dont get alerts on these new messages.
Uhm print does not debug for me, I had to use Comment. Not sure why this code is not printing, must be dll or something, Im not sure.
2014.02.02 12:06:39 2013.12.16 00:27 mysql_strategy GBPJPY,M1: ðŠ;*‹;;548;GBPUSD;Buy Stop;0.21;1.63650;1.62989;1.62752;1.64548
I have a problem all of a sudden with mysql that I cant get the rows no because I get garbled characters all of a sudden with this dll. ðŠ;*‹;;548;GBPUSD;
Why would this happen all of a sudden, Ive read about this on other threads too. Not sure what todo now.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I coded this mysql mql4 from scripts I found of these forums and I got it to work right.
I put this on AUDNZD Chart and started trading only the one pair but I have also other pairs that I want to trade and I don't want to open multiple charts and only use one because there too many pairs too open. So I want to trade multiple currencies on one chart so to save me time. I started debugging this and I cannot seem to get Print() to show in Journal and its not printing the two pairs in journal. So I don't know why its not opening the two pairs.
I load the same script on USDCHF and it works but why do I need to open two different charts? I also get no ordersend error or any indication whats going on.