
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
Good morning!
Please advise. This is how positions are opened for each pair in the multi-currency EA.
Please advise. How can I write a separate function instead of this block.
So I don't have to rewrite this block for every pair ?
(The block uses I.Kim's fi and Market Watch's opening fi).
Good morning!
Please advise. This is how positions are opened for each pair in the multi-currency EA.
Please advise. How can I write a separate function instead of this block.
So I don't have to rewrite this block for every pair ?
(I used I.Kim's fi and Market Watch opening fi in conditions of market order execution).
void FUN(string _Symbol){
// Your code, but using _Symbol instead of a symbol
}
Thank you. What about bids, asks, Delta, Lots and bool TRADE (this is input permission) for each pair?
Would this be correct? -
Also. I seem to have heard in passing that it's incorrect to use (call) one custom function inside another.
And I'm using a function in a block to open positions in market order execution Market Watch
Won't there be problems and malfunctions?Thank you. What about bids, asks, Delta, Lots and bool TRADE (this is input permission) for each pair?
Would this be correct? -
Also. I seem to have heard in passing that it's incorrect to use (call) one custom function inside another.
And I use in my block the function for opening of positions in conditions of market orders execution Market Watch
Won't there be any problems and malfunctions ?double _Bid=MarketInfo(_Symbol, MODE_BID);
double _Ask=MarketInfo(_Symbol, MODE_ASK);
....................................................................
The call function can be in any place. There will be no problems.
Good afternoon!
I use a trawl in a multi-currency truck. It's like this:
In order to engage the trawl for all pairs of multicurrency, I reworked it like this.
(Bids-asking-points are called via MarketInfo(Symbol_1,MODE_ASK);
The Expert Advisor works by opening prices.
The trawl is called like this:
However. The trawl does not work with this setting.
If I remove the trawl of one symbol, the trawl of another pair starts working.
If both trail pair calls are present in code, none of them works.
Please advise. Where may it be an error?
You have to use a different prevtime for each instrument and timeframe.
Thank you Vinin !
I was just about to write my own trawl for each pair....
Help with the multi-currency advisor.
I have written an EA. It simultaneously opens/closes orders for two pairs EURUSD <-> GBPUSD. I link it to EURUSD. Reads quotes for both pairs (iOpen). The commands below are executed
Ask_EUR = MarketInfo("EURUSD", MODE_ASK);
Bid_EUR = MarketInfo("EURUSD", MODE_BID);
And these commands are not executed
Ask_GBP = MarketInfo("GBPUSD", MODE_ASK);
Bid_GBP = MarketInfo("GBPUSD", MODE_BID);
Values ask = bid = 0
Can you tell me what is the matter?