Forum

basic question any assistance is appreciated

i have been looking at tutorials and basic stuff just trying to figure out how to close a order i created this program which should both open and close a buy position each tick input double l=1; void OnTick(void) { int p = OrderSend(Symbol(),OP_BUY,l,Ask,3,0,0,"buy",1,0,Green); bool

question

can someone tell me what code i would use just to get a ea to buy 0.03 lots of the eur usd currency pair if it rises above a particular price , for example 1.0553 i tried to do it but the ea kept buying a additional 0.03 lots every tick i tried to use the orderstotal function to ensure the ea would