Good afternoon, help is needed. There is a certain bar and its closing price. How to implement the following: the owl should open a position when the difference between the current price and the closing price of a certain bar is greater than the set price. I am only able to calculate the difference between the closing price of a given bar and the closing price of the current bar (and not with the price at the moment - which is what I want to achieve).
tommy27: Good afternoon, help is needed. There is a certain bar and its closing price. How to implement the following: the owl should open a position when the difference between the current price and the closing price of a certain bar is greater than the set price. I only succeed in calculating the difference between the closing price of a given bar and the closing price of the current bar (and not with the price at the moment - which is what I want to achieve).
use iClose(0,0,0) to get the current Bid price of the current symbol of the current timeframe
Can you tell me if it's possible to apply a custom indicator to a custom indicator, how can I do it with standard indicators (selecting to apply to Previous or first indicator`s data)? I've found only standard price constants during the calculation of custom indicators (closing, opening, typical price ...) but I haven't found how to attach a price, not indicator.
tommy27: Good afternoon, need some help. There is a certain bar and its closing price. The implementation of this feature: The owl should open a position if the difference between the current price and the close price of the specified bar is greater than the specified one. I am only able to calculate the difference between the closing price of a given bar and the closing price of the current bar (and not with the price at the moment - which is what I want to achieve).
But note that you have to put an additional restriction, so that after the execution of this condition the EA will not open a position on every tick...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Dear Professionals!
Please advise the most correct and fastest method to calculate the overlap of two neighbouring candlesticks.
I suspect the indicators for this have been written for a long time and they are lying here in the database, but I can't find them.
I would do it this way:
Good afternoon, help is needed. There is a certain bar and its closing price. How to implement the following: the owl should open a position when the difference between the current price and the closing price of a certain bar is greater than the set price. I only succeed in calculating the difference between the closing price of a given bar and the closing price of the current bar (and not with the price at the moment - which is what I want to achieve).
Guys, could you please tell me the code so that some action is taken after a change by some number of points in some time.
Example. Open Buy if price has changed by 20 pips in 10 minutes.
Be more precise:
1. exactly 20 pips exactly in 10 minutes
2. by no less than 20 pips within last 10 minutes.
3. a change of at least 20 points in the last 10 minutes
...
???
Use iClose(0,0,0) to get the current Bid price of the current symbol of the current timeframe
But the result is updated only when new bar appears. I want to see and track changes on every tick.
use iClose(0,0,0) to get the current Bid price of the current symbol of the current timeframe
Good afternoon, need some help. There is a certain bar and its closing price. The implementation of this feature: The owl should open a position if the difference between the current price and the close price of the specified bar is greater than the specified one. I am only able to calculate the difference between the closing price of a given bar and the closing price of the current bar (and not with the price at the moment - which is what I want to achieve).
But note that you have to put an additional restriction, so that after the execution of this condition the EA will not open a position on every tick...
Is it possible to determine the closing price of the current bar iClose(0,0,0) if it hasn't closed yet? I think shift should be >0.
When shift=0, it returns the current price
Is it possible to determine the closing price of the current bar iClose(0,0,0) if it hasn't closed yet? I think the shift should be >0.
The closing price of the zero bar is always there, but it changes with the arrival of a new tick.