Forum

Why does 0 become 1 sometime ?

I have this class OrderInfo Why is it if I use orderInfo = new OrderInfo() ; orderInfo.setStopLoss( 0 ) ; Then I pass the OrderInfo object to other object from class Executioner executioner.setOrderInfo ( orderInfo ) ; Definition of function setOrderInfo in class Executioner: public void

What The .... 1.000.000 $ difference in the same backtesting ?

I just finished my EA and have tested it in back test it a couple of days ago but then I did everything the same and it gave 1.000.000 $ different in result. I used the same unmodified EA. I used the same parameters or setting. I used the same symbol, time frame and back test length. My EA only

Can't draw arrow in backtesting ?

I just made simple EA but it draws nothing although I use visual mode. Then I made simple test on init function like this to drew some arrows but nothing showed up. void init() { ObjectCreate( ChartID(), "Test", OBJ_ARROW_DOWN , 0, Time[1], High[1] ) ; ObjectSet("Test"

How To Write Some Output To The File Before Crash ?

I'm trying to make a new EA with recursive function and every time I back tested it, its always " Meta Trader has stopped working ". I don't know in which part is the problem. I put some of print statements for debugging but I couldn't see it because it crashed. I also couldn't find some output in

Beginner In MQL5, Help Needed...

Just starting to code in MQL5, I tried to make very simple martingale EA which will double the lot size if we lose and stop after we win. When I tested this on strategy tester , its always written failed instant buy if I input Buy in the position input variable ( extern variable ), but it works if I

Is it Enough To Learn New MQL4/ MQL5 With C++ And Old MQL4 ?

Hello friends... Recently after long absence in coding I read that the new MQL4 extends fully from MQL5 and now it inherits full functionality of MQL5 and resembles C++, of course now it has OOP concept and leave the old procedural way. As a programmer I was happy when heard this news, unfortunately

Woowww.... No Tutorial At All On How To Program In MQL5 ?

I'm a C++ programmer, I've downloaded that reference of MQL5 but wow... 4000 pages of PDF... that's not tutorial book... I've read to page 90 but then I went to look for other alternatives. At least MQL4 has friendly guide and tutorial on how to program... http://book.mql4.com/ Its not a bad

Explanation about VR--SETKA code?

Can anyone help me explain how this vr--setka ea work... this ea make unbelievable 200% profit in 3 months when i tested it in strategy tester even though i know its impossible for this ea to keep get profit that much in the other months... or in real trading.... maybe january from march is an

expression on the global scope not allowed

please help me with this warning.. i've tried so hard to fix it but still no use.. the warning is expression on the global scope not allowed... :-( also 1 more question what are: *unbalanced left or right parentheses? *end program/unbalanced parentheses? *unbalanced parentheses