Forum

Difference in Testing Results

I developed an EA and tested it on 1 minute time frame, it worked perfectly well and obeyed the rules programmed in the EA. But when i tested it using the Strategy Tester and i tried to trace the result with the chart window (ie when it open sell or buy and close same), i discovered that it wasn't

Decimal Number

please what piece of code can i use to reduce this number 79.77739518770201 to four places of decimal, that is it will be 79.7773 I don't know whether MathCell can do it

Stopping multiple entry

Please can somebody help me go through this code and find out why its having multiple entry, if a sell condition is true it keeps entering multiple sells, the same with buy //+------------------------------------------------------------------+ //|

Stopping multiple EA entry

I am new to mql4 programming . I want want to understand some fundamental. I have this testing EA whose code is displayed below. How do I stop it from multiple entry. Like when the condition for buy is true, it enters buy on every tick, the same with sell. My question is how to i stop it from

iCustom with Heiken Ashi

Please how can i get the color of Heiken Ashi , that is if it is white(buy) or red(sell) using iCustom function. Thanks in advance

Writing EA

I am new to mql4 programming . I have watched alot of video of mql4 programming and i am ready to start developing my own but my challenge is that when I create a new file I dont see the Start() function as i saw it in the video but I am see OnTick(), OnInit(). Has the Start() function been removed