mrnoorhani / Publications
Forum
Need to get RECTANGLE high and low prices
Hello, I need to get the high and low price of RECTANGLE in my EA with below code. double price1 = ObjectGetDouble (chart[idx].ID,obj_name, OBJPROP_PRICE , 0 ); double price2 = ObjectGetDouble (chart[idx].ID,obj_name, OBJPROP_PRICE , 1 ); but I receive wrong prices as below
Pending Orders will not expires in Strategy tester
Hello, I am using pending orders in my EA and need they expire today if not activated. but in strategy tester the pending orders will not expired and still remain pending orders in terminal tab. What is the problem here ? how can be resolved ? My code is as below. void placeOrder( ENUM_ORDER_TYPE
different trade volume calculation in different computers
Hello, I am coding an expert and for volume calculation using below function. double tradelot( double Entry, double SL) { double riskamount = AccountInfoDouble ( ACCOUNT_BALANCE ) * capital_risk / 100 ; double totalpointmoney = ( MathAbs (Entry-SL) / SymbolInfoDouble ( Symbol ()