[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 143
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
Faced with another problem, what is the error?
Faced with another problem, what is the error?
Maybe try HtUp[i] and BuferUp[i] instead of HtUp[0] and BuferUp[i] ?
I'm starting to read about MQL4, so I don't know anything.
Can I write an EA that always works on the same timeframe? For example, if my EA only opens trades on H1 Moving Average, but you are on H4 timeframe. That is, it is not clear how to get information about bars from H1. I think I can calculate the H1 MA from the minute ones.
Maybe there is an example?
I'm starting to read about MQL4, so I don't know anything.
Can I write an EA that always works on the same timeframe? For example, if my EA only opens trades on H1 Moving Average, although you are on H4 timeframe. That is, it is not clear how to get information about bars from H1. I think I can calculate the MA H1 from the minute ones.
Maybe there is an example?
double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)
Calculation of moving average.
symbol - symbol name of the symbol on whose data the indicator will be calculated. NULL means current symbol.
timeframe - Period. Can be one of the chart periods. 0 means the period of the current chart.
period - Averaging period for moving average calculation.
ma_shift - Shift of indicator relative to the price chart.
ma_method - Averaging method. Can be any of values of Moving Average methods.
applied_price - Price used. Can be any of price constants.
shift - Index of the value obtained from the indicator buffer (shift relative to the current bar by the specified number of periods back).
I'll try to build it in. An example would be similar...
Instead of HtUp[0] and BuferUp[0], maybe try HtUp[i] and BuferUp[i] ?
That won't help(( well it didn't)
Hello. I'd like to know if there is a script or expert advisor that does all your actions in reverse, i.e. I press the buy button and the script opens sell, and I place a take and stop, respectively, also in reverse. Thanks.