Forum

Spread never changes

Hello, im using a demo account of mql4 platform. I never trades before, so i got no experience. Thats why i got this question, when i try to Comment the spread which is on the market always get the same number and never changes. The expression that i used is: Comment("SPREAD ", Ask-Bid); and always

Trying to close an order

Hello i got the next code: OrderSelect ( 0 ,SELECT_BY_POS,MODE_TRADES); int Ticket = OrderTicket(); Comment ( "Beneficios " , Beneficios); OrderClose(Ticket,NContratos,Bid, 10 , clrYellow ); for trying to close an existing order, the code belongs to a function

Testing my program in different charts

Hello i have tried my program in different charts, but just open and close orders in the first where i drag the EA. The thing is that i want to try in differents environments to see my strategy works in different ways

RSI line on expert advisor

Hello, im using the function iRSI but i need the line to be drawn, i can get that work on an indicator, how could i make they to work together? Or maybe i could draw on expert advisor

Close an open order with the new bars

Hello, i need to decide if to close or not an operation of buy/sell after 10 more sticks appears after the buy/sell operation. I want to take an average of that 10 new sticks so then i decide if i should close the operation or not. I know how to do with the previous bars before the buy/sell