• inheritance is not always flexible. • composition and delegation is sometimes a good alternative to dynamically add new behavior. • decorator type matches component type. • decor...
a good architecture is extendable, supportable, and reusable. patterns help build hq systems. patterns are proven to be good by experience. patterns are generic solitions for soft...
subjects update observers through interface. subjects knows nothing about the observers (one-to-many weak relation). new data can be broadcast by the subject, or requested by the ...
many architectures start with factory method, then evolve to af, prototype, builder builder makes complex objects step-by-step. af makes families of related products. builder retu...
this script calculates and prints out the instance_id for mt4/mt5 installations.the instance_id is used in the roaming folder names such asplease, find more details here:- mt4: - ...
first script selects symbols having spread below specified value on the marketwatch, then opens corresponding charts by appyling timeframe and template stated.second script closes ...
simple script to help selecting a signal based on parameters.user will input the parameters and the script will look up the signals base, 1 by 1 to find the matches....
assumptions market conditions are indeterminable. billions of factors are affecting market in different ways. at any instant evenly spaced upward or downward movements have same p...
simple risk management tool, that calculates required lot size according to amount of money trader affords to lose and stop-loss in points.inputs risk-money: money to sacrifice. s...
two variations are available;[scalpall]this script opens random positions with multiple symbols on marketwatch. take-profit and stop-loss levels are calculated by multiplying curre...
each individual trade request is written to "traderequest.csv" file in real time.this file will become long with all trade information and will have its name updated automatically ...
this script allows you to assemble a zip-file of your mql5-program with all dependencies automatically.the dependencies are:included source files via #include directive (both modes...
here is one option that will work in mql.the technique is called 'copy constructor'. make sure that all fields are copied, including complex data types, recursively.please refer to...
trade with no need to calculate lot size! this script calculates the proper lot size and opens the position(s) for you.set risk percent or risk amount of your equity and other para...
placing pending orders with no need to calculate lot size. script calculates the proper lot size and opens the pending order(s) for you.set risk percent or risk amount of your equi...
this structure provides quick access to sets of lowercase and uppercase latin, russian characters, digits, punctuation, brackets, whitespaces, and special sets of symbols after/bef...
the spread parameter has been coded as a list of section variables, with an option to open all symbols on the market-watch.usage is still simple.we loop through the market-watch an...
features: show main sessions: sydney, tokyo, london and new york. highlight with colored rectangles. you can identify graphically sessions volatility. parameters: sessions openin...
do you want to see your total profit losses in pips instead of seeing it in points or in your deposit currency and regardless of volume? well this very simple script allows you to ...
i used to suffer from unnecessary losses and/or cutting my profit short since i wasn't fast enough to modify my sl and/or tp. that is why i've wrote these scripts that will allow m...
description in an assumption that prices have a tendency to visit previous highs/lows frequently in short-term, this script determines the highest and the lowest prices for last x...
- this script opens randomly selected charts and applies user-defined template.[inputs]timeframe:chart timeframe.template:chart template.spread filter:only open symbols having spre...
when i start learning about trading, i remember the trading pioneer shawn lucas (founder of apiary-fund) saying "trading is simple, you go from bound range market to breakout marke...
this script calculates required margin to open a trade by examining specified volume.it also calculates maximum amount of lots that can be traded for given symbol.parameters symbol...
this script opens order with maximal amount of volume available with active chart symbol.take profit and order type is specified by user.there is no stop-loss. trade will be open u...
in mql ticks are stored in a special structure - mqltick. it's universal but a bit fat. if your algorithm handles large tick arrays it may become a reason of ram shortage. the clas...
definition : before we start, it is important to define the anti-martingale system. it is a system that allow you to increase the size of your position as the trade moves in your f...
definition : before we start, it is important to define the martingale system. it is a system that allow you to increase the size of your position as the trade moves against you or...
this script displays useful information. html file created is under mql5/files folder. if you want to open file automatically after running script disable comments at the beginnin...
this is just a script to get the last deal history data, for example : profit, deal type, swap, commission, etc.you can modify this script and use it in your ea as you want, for ex...
introduction are you tired and lost when it comes to creating an attractive market watch list ? you don't know from where to start ? you always see pro traders creating an attracti...
introduction: most traders keep losing money because they focus on money rather than planning their trades based on percentage risk. for example, you might afford to risk $300 of y...
introduction :have you notice that the market really moves on some days while it barely moves on other days ? let's not forget that when the market really moves we can actually mak...
introduction :have you notice that the market really moves during a specific time of the day ? let's not forget that when the market really moves we can actually make some decent p...
introduction :for day traders. 2 highly important indicators to turn strategies into extreme winning ones. the win/loss ratio and the reward/risk ratio will allow us to identify th...
introduction : the 8 effective steps to build a robust day trading plan using fibonacci retracement will help us use fibonacci to locate potential entry points.having a trading pla...
the script prints info about a closed position by its position ticket or identifier, on a retail hedging account.it supports only retail hedgingaccounts (forex).following info are ...
as a java developer for 20 years i am used to writing more complex programs using test driven development technique. when i started writing more complex expert advisors i was missi...
introduction : the breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breako...
open a buy position using the desired dollar amount instead of lots.to use, just drop it onto a chart and set inputs as needed.the script will then do the necessary lot calculation...
open a sell position using the desired dollar amount instead of lots.to use, just drop it onto a chart and set inputs as needed.the script will then do the necessary lot calculatio...
introduction : the currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one pe...
this class loads a licensing file by reading 256bit encrypted account data from a license file into an account array for the purpose of licensing. the class is initialised with a f...