Forum

RSI code help

what am i doing wrong here? why do i keep getting an error 130 ? am using fxpro and understand they use 5 decimal pip system... is there something else am not seeing? the code if for a simple RSI expert advisor... if the RSI is over 70 then a sell position is opened with a certain SL and a TP and

an impossible problem?

i need to make sure that each order is only opened once, the layout of the script is very specific to what the ask or bid price is so theres over 50 pending orders in the script all followed by each other like so: OrderSend ( Symbol (),OP_SELL,Lots, 86.200 , 3 , 86.200 +StopLoss* Point , 86.200

coding issue

how do i write in code : if (order is closed) {open this order} else {open this order} else {this 3rd order}? without numbering the orders, i just need it to be simple so that if a certain pending order has been placed it doesnt get placed again until it reaches a tp or a sl. thanks

order repeat?

hi, im using the following command to place an order at a preset price: OrderSend(Symbol(),OP_SELL,Lots,91.000,1,Ask+StopLoss*Point,Ask-TakeProfit*Point,"sell",0,0,CLR_NONE); RefreshRates(); or OrderSend(Symbol(),OP_BUY,Lots,91.000,1,Bid-StopLoss*Point,Bid+TakeProfit*Point,"buy",0,0,CLR_NONE);

expert advisor buy and sell same time

hey guys, i need help. could someone write me a part of a script which performs the following: 1.buys and sells at same position for example: USD/JPY open trade buy at 94.500 AND sell at 94.500, you might think this is stupid but its for a scalping system im trying to develop and im a begineer with