Forum

Strategy Tester in MQL5 gives very Different Results than in MQL4.

Hi everyone, I'm a newbie when it comes to the MQL5 version. I took the exact script I used in MqL4 and adjuste it to Mql5 for learning purposes. To my surprise, the tester result was horrible in Mql5, while the tester result in Mql5 was outstanding. Am I doing something wrong?? Please help and

How to select a ticket for a specific symbol irrespective whether there are other symbols opened?

Question How can you select a ticket for a specific symbol irrespective whether there are other symbols opened ie. both GBP and EUR in the terminal window? What I'm finding is that irrespective of the code below, it selects the first trade opened ie. Eur and reflects the EUR Ticket? I use the

Select "Ticket" Help required...

How can you select a ticket for a specific symbol irrespective whether there are other symbols opened ie. both GBP and EUR in the terminal window? What I'm finding is that irrespective of the code below, it selects the first trade opened ie. Eur and reflects the EUR Ticket

Static Question?

int DetermineChangeInDirection ( ) { static int LastDirection = 0 ; static int CurrentDirection = 1 ; if ( CurrentActiveTrades = = 6 ) CurrentDirection = 2 ; //Swap Buy and Sell Parameters

Order Modify for two different Symbols

Could someone please assist. I am trying to set a trailingstop for two different Symbols simultaneously. Could someone plrease take a look and assist where possible. Many thanks. //setup Stoploss parameters { if ( total > 0 ) { for ( int cnt = 0 ; cnt <= total ; cnt ++ ) {

Tricky Question? Can one Code the AccountBalance() for Today and AccountBalance for Yesterday?

Is there some EA code that can determine the AccountBalance () for Today and theAccountBalance() for Yesterday? I'll appreciate it very much if someone can assist me to "code" the above if possible

Assistance required

Could someone please help me: What I require for my current EA is some code that will "disable" my buy and Sell conditions if: A profit or loss was made on any new days trade. I was thinking in terms of AccountProfit () made today: Thus If AccountProfit for "Today" is Zero, then go to buy or sell

Help Required Please

Can Someone please assist me: How can I automatically close an existing Order when two Bars have formed after the Order was sent Originally two days ago. I'm using the Daily Charts. Thank you

Need Assistance Please!

I'm trying to show a comment on screen. i would like to put it below the aboveline etc. Here is the example: Comment("",Name, " "," First Buy ",FBFirstLevel," ", "Second Buy " ,FBSecondLevel, " ", "Third Buy " , FBThirdLevel, " ", "First Sell " ,FSFirstLevel, " ", "Second Sell " ,FSSecondLevel, " "