You didn't post a topic yet. Let us show you how to make your first topic and upload your favorite forex robot. Guide me

Skip to forum content

Quick Login / Register with Facebook Account!

Login with Facebook

Login with Username and Password!

     Username:       Password:  Login

Register  |  Forgot Password?

 

The latest topics with attached files (Forex robots, Forex Indicators, etc..)

Forums in this category with details of Replies, Views, last post

Banana Pips

by Nat4n

Big Breakout EA

by Md Billal Hossain

Hide

Recommended by Admin:

Trade with a small deposit, earn a big profit!

Try your Forex Robot on FBS Broker with a small depositleverage 1:3000ZERO Spread account!


Pages 1

You must login or register to post a reply

RSS

Posts: 1
Please rate this topic
Current rating: 0
Votes: 0

Embed topic to your site

Creating Function to count number of opened Currency Pairs

Topic: Creating Function to count number of opened Currency Pairs

Could anybody please assist me as I don't know where I got this code wrong.
I am trying to create a function named "OrdersTotalSymbolOpen()" to check for open trade on any of the following pairs namely EURUSD, GBPUSD, USDJPY, EURJPY and GBPJPY. It assigns value 1 to any pair that is currently open otherwise the value will be equal 0.The function is to return the value of variable "TotalCount" which is the sum of the number of pairs opened out of the 5 pairs. 
The problem is that it keeps returning value "0" even when the 5 pairs are opened.
I attached the code for your perusal and correction. Thanks for your anticipated cooperation.

Post's attachments

symbolcount.mq4 4.33 kb, 4 downloads since 2018-09-16 

Message from the MT4talk Admin:

Try your Forex robot on leverage 1:3000  All Forex strategies allowed! Scalping, hedging, martingale, etc... Deposit small money and make a big profit!

IMPORTANT:

If you are using a Forex robot, you must use a very fast Forex VPS! Try this super fast Forex VPS!

Hot Forum Topics:

Forex robot with a total net profit $1,945.43 >> Go to the forum topic.

Forex robot with a total net profit $194,459.50 >> Go to the forum topic.

Share

Posts: 1

Pages 1

You must login or register to post a reply


NOTE: Hacked or illegal versions of copyrighted Forex robots are highly prohibited on MT4talk.com. If you upload any illegal version of any copyrighted Forex robot, your forum account will be banned. No exceptions.

 

Forex Risk Warning: Due to leverage, Forex comes with a high risk of losing money. Eighty to 90 percent of Forex traders lose money. You should not invest money that you cannot afford to lose.

Forum statistics

  • Total number of registered users: 23,919
  • Newest registered user: llight08
  • Total number of topics: 11,311
  • Total number of posts: 37,105

Online users: 2,139 guests, 194 Members:

2899973350, 2trade2win, 777legrand, addat, adilloadam6, admin, afc123, afiq.hidir, ahossanmarc, AL Dossary, Albert Bleyler, Allan Rubini, am53investing, amadosio, amdpc93, amwforex, Andersom Oliveira da Cunha, Andrew Kennedy, Aneilton Morais, angel.mayor, Anjum Khan, AnthonyT, Antonino Levatino, aprice220466, axel7969, badriaz918, BearBull7, BENEX, billymaggot, Boonchoke Intarapanya, Brahim Hadef, calimocho5, Cas, ch4nd4, chris1961GR, christiaan.heuer, ciprofar, cjhenning7, cosmarchy, cosmoledo, crootster, csampath1992612, d3nix111, Daniel Castro, danieltito1964, Darshana Samaraweera, DAVID APAZA, den.kong.2018, deprofiters, digitalboy, dillansym, DomCount12, Donald Hawkins, Donovan Sissing, dopeyslydawg, doyathink, EditHM, elalouanisalah92, EliteOne Sport, etiennehogue77, EV Bila, ezwane1, feculanec, FFilipe, findel147, flsekme, Forex Stock Trading, frettad, giodel, gofire, guojr, Hamad Ali, hmaunoir, hondacbrr6, honvohermann, horacewh, ian.kungu, idhamkholid, igolfishing, imadsh, Inconito75, Isareeya Khongchaiphum, ismaelbado, israelz74, jailson925, jaysonajax, Jesus Flores, Joe0013, Jordan Pritchett, José Luis Pérez, jozmik, judeekatherinexx, kava93, kcskavi, Kgalagadi Gemsbok, Khaled Azaiez, khalili1989, kiko, kiruba, kno, Kojo Bame, kozura, krisapong, lastwariors, latifi98, lawrence.jrt, llight08, logu5332, longroad01, Maarten Heinrich Luc, mac.seloane, machs_nochmal, mag00, magmonmonm, Makari, marbre, marcial03, marketingwithmark, mayiselak, menzistondlovu, micwolf9, mightymokgatle, mihai.dorosin, mikeb4, mlypeter, Mohammad Yousaf Hameedi, morkosa, Mostafa Essam Nassar, mt4talk, Nat4n, ndamulelomasindi, netprofit, nhawan429, Nicholas Salton, Niven Obando, Oxogen Basudan, ozsah98, pabsim, Paul Ene, pitbull0525, poetrax12, Polop, polux29, R3P3NT, reynier.punisher.barnard, Sai Srikar, sen3226, serctes, Serwar7896, Shafi Ullah, shahbaz.star333, shailey1s, sniv, somagacast, ssehrat, Stans2037, sunnynguyen1984, suyadi, sydap2003, tahucrispyku2, tai, tfeller, thiaw99, thuan27, Timswood, tinyikolouis73, Titus Nomsure, tjoe79, Tom Kuhn, topcat275, traderforexbrasil, tsuwahas2017, tuvix2, uilues, uvasile, uzobusy11, Valie, vanngan, vasaganreddy, vaverin, verdeamanecer1983, veter, Victoriano, weethegang, Whale, willyxxx2, Wynand Nel, Xgar, Yai Megaforce, yansu75, yclow_1995, younes700, Zitha Errens Ziqubu, วรท ชอบทำดี

 


Copyright MT4talk.com Forum Rules - Privacy Policy.