DroidM # : Im confused as to how i can go about accessing a desired candle on a higher timeframe. For example, an array of candle closes for 1 min candles is close[]
My strategy picked out close[8] which was at 1.69230 how can i find out on which candle in the m5 chart was at 1.69230
I guess i confused you with my question, i use an ea that looks for divergence using Bollinger bands, on a sell trade, the high and the higher high need to close above the Bollinger band , the higher high is the 1st candle i.e close[1], and the high candle can be any candle from close[5] to close[50], for example the high is at close[11] i would like to check to see if that price(close[11]) had crossed Bollinger band on m5 chart as well
DroidM # : I guess i confused you with my question, i use an ea that looks for divergence using Bollinger bands, on a sell trade, the high and the higher high need to close above the Bollinger band , the higher high is the 1st candle i.e close[1], and the high candle can be any candle from close[5] to close[50], for example the high is at close[11] i would like to check to see if that price(close[11]) had crossed Bollinger band on m5 chart as well
Do not rush to answer - carefully study my example.
Do not rush to answer - carefully study my example.
Yes, i understood that bit, on audcad m20, you were able to get closing prices of the daily candles.
But in my case close[11] will neither be open, high, low, close on the m5 candle, just in between, how do i grab the index of the m5 candle that i want to check ?
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.
Im confused as to how i can go about accessing a desired candle on a higher timeframe. For example, an array of candle closes for 1 min candles is close[]
CopyRates must be used.
Example:
Result:
CopyRates must be used.
Example:
Result:
I guess i confused you with my question, i use an ea that looks for divergence using Bollinger bands, on a sell trade, the high and the higher high need to close above the Bollinger band , the higher high is the 1st candle i.e close[1], and the high candle can be any candle from close[5] to close[50], for example the high is at close[11] i would like to check to see if that price(close[11]) had crossed Bollinger band on m5 chart as well
Do not rush to answer - carefully study my example.
An example of get values from the iBands indicator
Do not rush to answer - carefully study my example.
How to get iFrAMA indicator data
Code: 'iFrAMA get value.mq5'
Remember - according to the MQL5 style, the indicator handle must be created in OnInit !!!
Example:
Result:
Pic. 1. iFrAMA get value
An example of using 'CopyRates' and 'MqlRates'
Code: 'CopyRates and MqlRates.mq5'
We will use 'CopyRates', the first form of the call:
Call by the first position and the number of required elements
Code:
Result:
Opening and modifying positions:
A simple advisor: there are always two opposite positions in the market
Code: 'Open Two Positions.mq5'
Dear Vladimir,
i want to ask about PostitionCloseBy.
Say BuyStop triggered, it closes Sell Position.. Thanks in advance..