[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 215
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
Good day to all!
I'm writing my first bot, and at the same time I'm getting acquainted with MQL. I have the following problem during testing:
Order OP_BUYSTOP is executed right after the order is placed, although judging by the chart, the price does not reach the target value (see below)
USDJPY,M5 (visual)
Date 2011.09.19
Time 02:15
Open 76.903
High 76.909
Low 76.890
Close 76.890
Volume 66
I am testing all ticks.
Maybe I do not understand OP_BUYSTOP order correctly? To buy if the price exceeds a certain value, right?
Here is a bit of source code that places an order
int ticket=OrderSend(Symb, OP_BUYSTOP, Lot, Price, 0, SL, TP);
On the candlestick chart, all prices are Bid and any buy order is executed at Ask price.
Thank you!
Hello! Please help me.
I can't understand why this script doesn't display the data in excel as columns.
When running it in excel, there is only a table header, no data.
Help me to understand why delimiter is not perceived by excel.
I'm starting with programming, so a lot of questions arise, thank you in advance for your attention!
I wrote a script called NewScript, which performs a simple function - display OHLC prices by bars on a chart...
My question is - if BARS is exactly the number of bars on the current chart, then why in my EA log displays the number of bars on the screen (about 200), but in my log more than 2000?
Thank you!
Small correction
sorry, can't understand the function...
The easiest option
Hello!
Can you help me write code to stop the EA for a while?
I wrote the code like this.
int init() {string OrderStop="OrderStop "+ Symbol();
OrderSig =GlobalVariableGet(OrderStop);
// Print (OrderSig);
return (0);
}
int deinit() {
return (0);
}
int start() {
string OrderStop="OrderStop "+ Symbol();
OrderSig = GlobalVariableGet(OrderStop);
if (OrderSig==1)return(0);
else {
EA body(code)
}
return(0);
}
In the trailer this code works, but when I compile or rerun Terminal,
EA starts to work (opens position) and does not trade again.
What can it be?
Or tell me another option.
Or suggest another option.
Use a f: