Forum

problem a lot of order

I build an Expert ,but it open a lot of orders at the same time . How can I make it to open just one order. please. void OnTick () { int total= OrdersTotal (); for ( int pos= 0 ;pos<total;pos++) if ( OrderSelect (pos,SELECT_BY_POS,MODE_TRADES)) OrderProfit();

what the problem in this expert

hi, i build this expert but it can't place orders ,Is there a mistake void OnTick () { double vpoint = MarketInfo( "EURUSD" ,MODE_POINT); double SL= 50 *vpoint; double TP= 100 *vpoint; int total= OrdersTotal (); for ( int pos= 0 ;pos<total;pos++) if ( OrderSelect

what "MQLTICK" ?

hi I've researched a lot I did not find a comprehensive definition of the Code MqlTick Can you give a definition of the role of this code thank you

help to do expert

hi i want to build expert ,work with indicator ima , when ima1<ima2 or ima1>ima2 put two order different At the same time , when one order get a positive profit the expert open a one new order like order profit whth other lots, like hedge

Please help me in path

I want to open a file in Téléchargements how can i do this string filename=Téléchargements int handle= FileOpen (filename, FILE_WRITE | FILE_CSV );

help:delete the information from txt

i want to delete the information from txt every tick how can i do this

error 5004 and totale data=0

hi i want to read the last line when i use FILEREADARRAY and FILEISLINEENDING it get a error 5004 open file and can't read data it just write totale data=0 this is the code: //+------------------------------------------------------------------+ //|

how can i use FileIsLineEnding

hi my friend i want to use FileIsLineEnding with //--- display the window of input parameters when launching the script #property script_show_inputs //--- input parameters input string InpFileName= "data.bin" ; input string InpDirectoryName= "SomeFolder" ;

I want to help to solve a simple problem

hi my friend i have two expert (expert send and other recieved ) the expert send is true but recieved is Can not read array because he read a lot of array At the same time and read first to last Which brings error array out of range . for this i want read every last array and show this at comment