Hello dear Coders,
could you please confirm whether or not the following code, which i conceived in the night in bed, will extract the pair, which is not from the chart where this EA is placed but has the same magic number as the pair of the chart? bc_cnt and sc_cnt are the buy and sell counts of the two pairs of the same magic number. b2_lot and s2_lot are the total buy lots and sell lots. Will the code send the trades successfully? I tried it in demo but haven't seen the counter trades till now. so i ask for your opinion and help. thanks
double symbola;
should be
string symbola;
double symbola;
should be
string symbola;
Thank you very much pipPod. ofcourse its a string how stupid i am. i am not used to coding so silly mistakes. thanks again for pointing out the mistake. today and tomorrow market is closed so i will check on monday if it sends the right trade and i will post the result here. my ea is addapted from a martingale system. but i have incorporated many many new ideas to make it as safe as possible without compromising much on the profitability of a martingale system. the above code is my latest idea. hope it works.
thanks again. much appreciated.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello dear Coders,
could you please confirm whether or not the following code, which i conceived in the night in bed, will extract the pair, which is not from the chart where this EA is placed but has the same magic number as the pair of the chart? bc_cnt and sc_cnt are the buy and sell counts of the two pairs of the same magic number. b2_lot and s2_lot are the total buy lots and sell lots. Will the code send the trades successfully? I tried it in demo but haven't seen the counter trades till now. so i ask for your opinion and help. thanks