[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 47
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
No it isn't. It got even worse :)
Understand, RefreshRates() updates the values of the predefined Ask and Bid variables, you are using the value once stored in the Price variable.
It seems to be right now, doesn't it?))Got it :-) I thought Price was only accessed when the execution in this function reaches OrderSend
Now it seems to be correct, right?))Got it:-) I thought Price was only accessed when the execution in this function reaches OrderSend
I think so.
function, gives only one value for some reason + compiler swears :
'iClose' - comparison expression expected
I don't understand what's wrong.
so use it in the programme.function, gives only one value for some reason + the compiler frowns:
'iClose' - comparison expression expected
I don't understand what's wrong.
This is how I use it in my application.Or it goes like this
I think so.
Everything seems to be working, thank you.
Hi. I need some help. The question is this:
Once an order has been triggered no matter how all other orders need to be closed. And again by the condition new ones should open.
Hi. I need some help. The question is this:
After an order has been triggered no matter how all other orders need to be closed. And again by the condition new ones should open.
Have you read the textbook at this point?
I have so far used
static bool order_opened = false;
if(order_opened){return(0);}
OrderSend(Symbol(),OP_BUYLIMIT,0.1,cena_buy,3,sl_buy,tp_buy,"",14774,0,Blue);
Alert (GetLastError()); // Error message on order placement
order_opened = true; // if the order has worked, do not open again
Now, we have to open a new order after the order has worked out.
I have so far used
static bool order_opened = false;
if(order_opened){return(0);}
OrderSend(Symbol(),OP_BUYLIMIT,0.1,cena_buy,3,sl_buy,tp_buy,"",14774,0,Blue);
Alert (GetLastError()); // Error message on order placement
order_opened = true; // if the order worked, do not open again
Now we only need to open a new order after the order has worked out.
Read the tutorial and documentation, change the logic for opening, closing by pose condition, insert code via CTRL+ALT+M.