Forum

Problems with double Orders

Hello, I wrote a bot that should open ten BuyLimit Orders. The BuyLimit Orders should be max. 0.00010 under the Ask price with an distance of 0.00001 of each other. That works, but there shouln´t be an takeprofit twice in buy or buylimit orders, but it happens. Something doesn´t work in my check

Print answer wrong

Hello, I place an Order, but I get the Wrong Order open time . Can someone tell me, where the error is? My code: if ( OrderSend ( Symbol (), OP_SELL , 0.1 , Bid , 3 , 0 ,( Bid - 0.0003 ), NULL , 0 , 0 ,Red)) { Print ( "SELL order opened : " , OrderOpenTime ());

place order at certain time

Hello, I am Oliver.I try to program my firtst EA. I want to place an order at an certain time. Is it possible to do it easier. I did it like this: int res; int counter = 0 ; int s = 0 ; int m1 = 59 ; int s1 = 00 ; int h1 = 15 ; void OnTick () { int STC= TimeSeconds ( TimeCurrent ()); int m=