Forum

extern variables

Hello I want to know more about this dialogue box that shows the extern variables. my probleme: I want the variable LOTS to start with the value 0.01, and i don't want it to step or somthing like that...., it's configured in the EA. This case is about my variable "LOTS": the instruction on Init()

double OrderProfit( )

Hi Dear The function OrderProfit() returns the net profit of a selected trade, but the problem is that the profit is given in 3 options (As points, as deposit currency, term currency). I think the value returned is the profit in deposit currency -i don't know what is term currency-, is there any

A probleme with error processing !!

This code compiles with NO errors When i add the error analysis cycle. else { //Trend DOWN nbr_pos_EA++; magic++; tab_pos[nbr_pos_EA - 1 ] = OrderSend (SYMBOL,OP_SELL,LOTS,Bid, 3 ,Bid-(TP* 2 * Point ),Bid+(TP* Point )

A question please about OrderProfit( )

Dear MQL4 developers I wish to know what is the default return value of this function double OrderProfit ( ), is it the profit as "PIPS" or as "Term currency" or as "Deposit currency". I hope you can answer fast, and thanks a lot