mql4Forum: I want to ...
|
- Not rude. There are no mind readers here. We have no idea what you want because you haven't posted anything or even asked a question. You have to do your own work, we're not going to do it for you.
- There are no "guidelines." There are no mind readers here. We have no idea what you want because you haven't posted anything or even asked a question.
- Do your own research, we're not going to do it for you. There are no mind readers here. We have no idea what you want because you haven't posted anything or even asked a question.
- So look, we're not going to do it for you. There are no mind readers here. We have no idea what you want because you haven't posted anything or even asked a question.
I want to gather all the data from an indicator and export it/generate a graph in a new window. Is there an easy way to do it? I imagine it would be something along the lines "for (int i = 0; i < Bars; ++i) if (foundSignal) exportData"
Also, I'd like to do a global indicator. Meaning...I want to do the above, but the indicator would run through all the currency pairs, not the one it's attached to. I want to gather information from all charts.
Thank you!
The approach I use is to write the output, by bar, to File(s) then read the File(s) in a new Chart.
iBarShift(symbolName, PERIOD_M1, iTime(symbolName, PERIOD_M10, bar))this way I get the bar at M1 chart using M10 chart, and then do
if (iClose(symbolName, PERIOD_M1, curBar) < iClose(symbolName, PERIOD_M10, bar))
to see if the price is lower(could check for higher, it's just an example).
I don't like this solution but it's the only one I could find, is there a better one? Thank you!
mql4Forum: is there a way to check for a price at a specific time? For example, suppose I'm on a 10 min chart, and a signal pops up. I want to check if the price is smaller or higher 2 min later.
- There is no M2 or M10 on mql4. are you posting in the wrong forum?
- iBarShift is the way. Don't mix apples and oranges
- There is no M2 or M10 on mql4. are you posting in the wrong forum?
- iBarShift is the way. Don't mix apples and oranges
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to gather all the data from an indicator and export it/generate a graph in a new window. Is there an easy way to do it? I imagine it would be something along the lines "for (int i = 0; i < Bars; ++i) if (foundSignal) exportData"
Also, I'd like to do a global indicator. Meaning...I want to do the above, but the indicator would run through all the currency pairs, not the one it's attached to. I want to gather information from all charts.
Thank you!