Hi, i want save course as a value in global variable . It need to be save as a current value, written in points . Not the Ask or Bid. I want to use it to compare distance between orders. If i use GlobalVariableSet GLV == OrderOpenPrice than it will
I want save results of counting to use them when next tick induce reaction in EA and there will be next counting. A Variable that will still have a value from last counting to the next counting even when meantime course will
I need to know if the order before lest one was sell or buy and what was the open price and if there had been a take profit or stop loss used at the end. can you help me?
The problem for me is that i don't know what was last order MagicNumber. - I need to check open price of the last order even when I close and start again computer. If I know what was the magic number, than I could use this code... int OPrice; for(int
Hi, I don't know what is wrong. I can't close the order. There is last ERROR nr 129. Can you help me? for (pos = OrdersTotal ()- 1 ; pos >= 0 ; pos--) if (
Hi, I'm looking to answer what have I made wrong cose my EA is working (sending and closing orders). The problem i I can't test strategy. This is my first EA so any prompts appreciated:) |
The problem is that I can't start my first strategy. I can't send the orders. This is the code i use to check if order with MagicNumber exists and if not than strategy should send the order. Anybody knows what is wrong and why this isn't sending
I don't know why this is not compiling. Can you help me? int start () { int ABUY, ASELL, pos; if ( ABUY== 2 ) { if ( ASELL>0 ) { for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders &&
First I try to delete pending order with magic number=1 using this: OrderDelete(OrderMagicNumber()== 1 ); Doesn't work! But somebody tell me that this is boolean expression . //by the way thanks brewmanz So i think about: int OMN= OrderMagicNumber;
Please give me a prompt if you know why this isn't runs when I add it as a strategy in my panel. I want it to check if any order is on the market. If not it should send pending orders. I think that the problem is in form or coding. int start() {
int start() { double ABUY=0; double ASELL=0; double BBUY=0; double BSELL=0; double point = MarketInfo(Symbol(),MODE_POINT); double expiration=CurTime()+PERIOD_D1*60; int n; int total= OrdersTotal(); for( n=0; n<total; n++ ){ // count how many open