Forum

How to count days that orders had been open

I need some help. How to count days that the orders had been open including weekends and holidays. for example: buy/sell order had been open for 40 days, it should return 40 buy/sell order had been open for 20 days, it should return 20

reasonable lotsize of Accountstopoutlevel of 100

anyone can calculate the max reasonable lotsize before you enter a trade if the accountstopoutlevel is 100 which means if the margin level reaches 100%, the account will be stopout

Need help in this code

double EUR= 4 ; double USD= 1 ; double GBP= 6 ; double CHF= 3 ; double JPY= 9 ; double num_array[ 5 ]={EUR,USD,GBP,CHF,JPY}; //41639 ArraySort(num_array,WHOLE_ARRAY, 0 ,MODE_DESCEND); string Comm; Comm=Comm+ "\n\n = " +DoubleToStr(num_array[ 0 ], 4 )+ "" ; Comm=Comm+ "\n = "

How to delete object

Anybody know how to code delete all object arrows for the last month but keep all arrows for the current month

Traderex Signal

I have stopped providing signals

How to code an average total holding days of a trade

Anybody know how to code an average total holding days of a trade from the account history

How to find highest and lowest open price orders?

for example-: I have 3 buy orders and 4 sell orders open at the price below 3 Buy orders open price 2.5 2.3 2.6 4 Sell orders open price 1.6 1.2 1.1 1.5 Now I only want to display the highest of buy open price which is 2.6 and the lowest sell open price which is 1.1. Anybody know how to do this

How to fix a failed [Common error]

Anybody know how to fix a failed [Common error]? My EA did a sell trade which is successfull previously and now when it tries to place a sell trade again, it has a failed [Common error]. No problem with the buy order. I have search in the metaeditor documentation and this forum but it doesnt do much

How to find total number of symbols traded

How to find total number of symbols traded. eg. I am trading buy and sell GBPUSD , EURUSD, EURJPY and USDJPY and I want this to return total of 4 pairs traded. Anyone know

What is the code to calculate the lowest margin and the highest margin level?

What is the code to calculate the lowest margin and the highest margin on which date and time tht it occur? It should display something like example below on the chart: Lowest margin: ??% on 01.02.2008 Highest margin: ??% on 01.05.2008