Forum

how I code?

int orders= OrdersHistoryTotal(); if ( OrderSelect (orders,SELECT_BY_POS,MODE_HISTORY== true )) { if (OrderType()==OP_BUY) //Month()==12 Year==2013 ) { OrderSend ( Symbol (),OP_SELL,,Bid, 1 ,,, "" ,MAGICMA, 0 ,Red); return ; } else if (OrderType()==OP_SELL)

is it possible to string variable shown in data window?

hi, i have a string array such below. Is there any code to show string variables from array in data window? string pair[ 28 ]= { "EURJPY" , "GBPJPY" , "AUDJPY" , "NZDJPY" , "CHFJPY" , "CADJPY" , "USDJPY" , "EURUSD" , "EURGBP" , "EURCHF" , "EURCAD" , "EURAUD" , "EURNZD" , "GBPUSD" , "GBPCHF"

How do I compare values?

I have 28 arrays. Every array has double values. How i code to compare these values? For eample i want to find the second value from 28 values for every order(secondvalıue[i]) Please show some simple codes. Thanks

How coding array as variable in iclose() function??

i have one simple question. if i explain well it would be double ok. Que. is; i have string array as pairs[28] . This array consist of 28 pairs. For example i want to put this array as variable into the iclose() function . Such as; for(int i=0;i<500;i++) { For(int k=0;k <28;k++) { iclose( pair[k], 0

Finding the highest numbers between arrays??

Hi guys, I have 28 double arrays(one dimentional) how I can code to find the first 8 highest numbers(arrays) and create new two dimentional array that one dimention shows bars history and second shows these 8 values??? thanks

how can ı define i day as dayofweek?

Hi this is my first Q. :) Thanks for sharing with your idea. Question is ; I want to find i day in the loop which is dayofweek = 2 for example, i am trying but doesnt work such as : TimeDayOfWeek(iTime(NULL,1440,i)) == 1