Ivan1: I don't need a signal line.... it's just the MACD histogram correlation - the current MACD value with the previous one, that's what I need to assign them to the variables
did you look at the link?
I will duplicate with selections:
double iMACD( string symbol, int timeframe, int fast_ema_period, int slow_ema_period, int signal_period, int applied_price, int mode, int shift)
symbol
-
Symbol name of the symbol, on whose data the indicator will be calculated. NULL means current symbol.
yosuf: On this forum I recently read an idea that if you open 2 differently directed orders with the same SL at the same time, then after one of them closes you can try to make a profit. Has anybody checked this idea or not? Maybe there is a similar EA?
Tell me where i went wrong plz... or if it's MT4 itself, but my Buy orders open only on High bar, and Sell orders only on Close bar =) Although I haven't even stipulated these conditions in the Expert Advisor's code =)
Tell me where i went wrong plz... or if it's MT4 itself, but my Buy orders open only on High bar, and Sell orders only on Close bar =) Although I haven't even stipulated these conditions in the Expert Advisor's code =)
Let me guess, perhaps you are using this EA in the tester in the " open price" mode, because it shouldn't work in normal mode.
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.
Hi all. Please help: I need to assign to a variable the value of the current "MACD bar" and to a second variable the value of the previous...
I don't need a signal line.... it's just the MACD histogram correlation - the current MACD value with the previous one, that's what I need to assign them to the variables
did you look at the link?
I will duplicate with selections:
double iMACD( string symbol, int timeframe, int fast_ema_period, int slow_ema_period, int signal_period, int applied_price, int mode, int shift)
mode - index of the indicator line - here you need to specify which of the lines you need - line or histogram
shift - index of the received value. you need two values:
shift = 1 - previous value
shift = 0 - current value
I noticed for a long time that in the "account history" the orders closed at TakeProfit have [tp] in the comments, and some have tp/a...
What is the difference ?
Regards Bradman
Hello, everyone. I'm confused. How do I find out the slate of a vertical line in a subwindow?
Tried this.
Tried this
ObjectGetShiftByValue "Applies to trend lines and similar objects"
Use the iBarShift function
On this forum I recently read an idea that if you open 2 differently directed orders with the same SL at the same time, then after one of them closes you can try to make a profit. Has anybody checked this idea or not? Maybe there is a similar EA?
Expert Grid v.2.
"Copyright©2008 EAfactory.com and Expert-4x.com - "Revision: 264".
Opens positions in both directions and closes both if the difference is positive.
Tell me where i went wrong plz... or if it's MT4 itself, but my Buy orders open only on High bar, and Sell orders only on Close bar =) Although I haven't even stipulated these conditions in the Expert Advisor's code =)
Tell me where i went wrong plz... or if it's MT4 itself, but my Buy orders open only on High bar, and Sell orders only on Close bar =) Although I haven't even stipulated these conditions in the Expert Advisor's code =)