• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 7:45am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 7:45am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Help! how do I lock my indicator to an mt4 account 24 replies

How to Lock in MT4 Grid ? 4 replies

How to configure global variable according to currency pair? 20 replies

MT4 being weird: Small variable range creates OrderModify error 3 replies

Global Variable question: 7 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
Tags: lock pattern for global variable in MT4
Cancel

lock pattern for global variable in MT4

  • Post #1
  • Quote
  • First Post: Nov 14, 2006 9:11pm Nov 14, 2006 9:11pm
  •  thebts
  • | Joined Jul 2006 | Status: Member | 32 Posts
Does anyone have a good locking pattern for global variables that works in MT4?

I would like only one ea at a time to read, write then update a global variable.
  • Post #2
  • Quote
  • Nov 14, 2006 9:47pm Nov 14, 2006 9:47pm
  •  aicccia
  • | Joined Jun 2006 | Status: Carpe Diem | 854 Posts
what is a locking pattern?
 
 
  • Post #3
  • Quote
  • Last Post: Nov 15, 2006 2:45am Nov 15, 2006 2:45am
  •  thebts
  • | Joined Jul 2006 | Status: Member | 32 Posts
Quoting aicccia
Disliked
what is a locking pattern?
Ignored
In programming a pattern is a generaly repeatable solution to a common problem. Sort of like a template that can be used in many places.
I was looking for a locking pattern. In other programming languages there are patterns programmers use to lock a variable so that you can guarantee that only one thing is changing it at a time.

I figured someone has worked out the best way to do this in MT4 with global variables.

Since i made the original post i have found the function GlobalVariableSetOnCondition() which might help to do this unless someone has a better idea.
 
 
  • Platform Tech
  • /
  • lock pattern for global variable in MT4
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023