Forum

Help converting mql4 to mql5

Hello I am new to mql5 and I realize that I am having a hard time converting my indicators written in mql4 to mql5 because I lack a point of reference. My indicators are similiar to the one Rosh wrote here: https://www.mql5.com/en/code/7072 Can someone show me what this sample code would look like

How do you figure out the tangent line derivative of a MA

I have seen posts on how to calculate the rate of change from two points on a moving average line which gives you the slope, however, this is the secant of the curve. How do I get the line derivative of this when the original formula for the moving average only exists in random points. The line

What is a Null Bar

I have read articles regarding a null bar and also seen metion of a zero bar, what are they? Are they one in the same, do they arise from using historical data in an indicator into an EA? There is no mention of it in the documentation and seems to pass as common knowledge, any help would be

Account balance in back tester

When I use the back tester for my EA and try to get the account balance for each of my trades, it only gives the initial starting balance of the account with out any added profits until the EA closes. How do I get the account balance to show for at the time of each trade in the tester

current high and low for order

Will this return the high and low for an order opened until the current bar? If so, will it return the same number on every time frame? double iDifferenceBSCO = ( iBarShift ( NULL , 0 , OrderOpenTime ( ) ) - iBarShift ( NULL , 0 , iTime ( NULL , 0 , 0 ) ) ) ; double iHOCShift = iHighest ( NULL , 0

Where to get statistical reports

I have a question on where to get the statistical reports that are used in the Championship Trading, ie. https://www.mql5.com/en/users/Gorez Is there a mq4 that puts them into a csv that then can be imported into excel, or does there exist a mq4 that creates an htm? If not, does anyone know of a

Clarification needed about equity and drawdown

I am a newb so sorry if this is a simple question. I need to know what the relationship between equity and drawdown(absolute, relative, maximal) as it pertains to the tester chart for the EA. What does it mean when the equity is above the balance on the chart and what does it mean if it is below

How do you plot a future point?

I know you can plot to positive values, the line drawing will be shifted to the right using setindexshift, but that is for an indicator only. Is that correct? I want to use this same method using objectcreate, but I am unable to do so. Is it possible, if so how? Below is a snippet of code