To be honest, I don't understand the question either.
Doesn't it work?
I need the Eura momentum to hang on the Pound window! - and if you don't write the symbol separately, it defaults to the currency it's attached to in the window... i see why i need this stuff so much :))?
Let's think together, where in the code could there be a symbol? A quick look will show us that apart from Close[i] no price parameters are used in the code. We look in the Close[] reference and find out that this time series is the closing price at the current symbol. But another time series, iClose( string symbol, int timeframe, int shift) allows us to get data from the specified symbol. So, replace Close[i] in the code with iClose( _Symbol, 0, i) and enter the external variable extern string _Symbol="EURUSD"; set the value of the required symbol in it and enjoy the result. I haven't tested it but it should work.
granit77: Let's think together, where in the code can a symbol be present? A cursory inspection will show that no price parameters are used apart from Close[i]. Let's look at Close[] in the reference and find out that this time series is the closing price at the current symbol. But another time series, iClose( string symbol, int timeframe, int shift) allows us to get data from the specified symbol. So, replace Close[i] in the code with iClose( _Symbol, 0, i) and enter the external variable extern string _Symbol="EURUSD"; set the value of the required symbol in it and enjoy the result. I haven't checked it but it should work.
It is not quite like this. As always, "the devil is in the nuances".
If you are trying to display an indicator based on the bars of another symbol on the current symbol, you must take care to match the bars.
I.e. the bar numbers for the same time for different symbols may not be the same.
obla4ko: I need the eura momentum to hang on the pound window! - and if you don't write the symbol separately, it defaults to the currency it's attached to in the window... i see why i need this stuff so much :))?
Ah, I thought the data needed to be pulled out...
I don't know, I would make an indicator and pull data into it via iMomentum... or iMomentumOnArray maybe
That's weird. You mean Momentum, what's that got to do with Mashka?
How about this?
That's weird. You mean Momentum, what's that got to do with Mashka?
How about this?
...
write it again based on
, or can it be written into the existing code!
I actually mean the same thing - only in MT4-momentum (see code above) NO(!!!)
Honestly, I don't understand the question either.
Does it not work or what?To be honest, I don't understand the question either.
Doesn't it work?Let's think together, where in the code can a symbol be present? A cursory inspection will show that no price parameters are used apart from Close[i]. Let's look at Close[] in the reference and find out that this time series is the closing price at the current symbol. But another time series, iClose( string symbol, int timeframe, int shift) allows us to get data from the specified symbol. So, replace Close[i] in the code with iClose( _Symbol, 0, i) and enter the external variable extern string _Symbol="EURUSD"; set the value of the required symbol in it and enjoy the result. I haven't checked it but it should work.
It is not quite like this. As always, "the devil is in the nuances".
If you are trying to display an indicator based on the bars of another symbol on the current symbol, you must take care to match the bars.
I.e. the bar numbers for the same time for different symbols may not be the same.
I need the eura momentum to hang on the pound window! - and if you don't write the symbol separately, it defaults to the currency it's attached to in the window... i see why i need this stuff so much :))?
Ah, I thought the data needed to be pulled out...
I don't know, I would make an indicator and pull data into it via iMomentum... or iMomentumOnArray maybe
Not really. As always "the devil is in the nuances".
If you are trying to display an indicator based on the bars of another symbol on the current symbol, you must take care to match the bars.
I.e. the bar numbers for the same time for different symbols may not coincide.
Where have you been before? You're right. Added it, it's working.
Where have you been before? You're right. Added it, it's working.
And the cloud is silent... :))
Where have you been before? That's true. Added it, it's working.
Well, I sometimes have one eye on this thread and sometimes reply.
So "excuse me", helping out, so to speak, as much as possible.
:)