the ea trades with the help of the rectangle, ema and sma indicator.ea settings:1: magic 2: commentary 3: ema small 4: sma big 5: volumes 6: stop loss of day 7: sl points 8: tp poi...
update: v1.01 added magic number added control on symbol (it can be now attached to different charts on the same account) added time control for trading added an option to forcibl...
key features: moving average entry:the ea uses a simple moving average to identify potential entry points. when the market conditions align with the moving average crossover strate...
this advisor utilizes the rsi indicator and performs adaptive search for minimums and maximums to determine optimal entry and exit points in the market. the advisor analyzes the la...
1. entry rulelong entry: we will enter long positions on the golden cross.the value of the previous moving average is higher than the shorter-term moving average. the value of the ...
symbol input (symbol): the function takes as input the symbol of a financial instrument for which the filling policy is to be determined.obtaining the filling policy type (filling)...
the "martin gale breakout" strategy is an expert advisor (ea) designed for trading in the forex market. this ea combines a breakout trading approach with elements of the martin gal...
the "martin gale breakout" strategy is an expert advisor (ea) designed for trading in the forex market. this ea combines a breakout trading approach with elements of the martin gal...
1.overview the double bollinger band strategy makes use of two bollinger bands in order to filter entries and exits in the forex market.the strategy aims to enter buy (sell) trades...
lot size computation methods possibility to enable different trailing stop strategies to be optimized for your specific needs, account and trading strategy. a donchian channel str...
introduction most eas tend to close orders in take profit based on the distance in pips from the purchase price . however, the code used by is based mainly on the current profit . ...
an expert advisor that can recognize handwritten digits the database consists of 60,000 images for training and 10,000 images for testing. these images were created by "re-mixing" ...
part 1. introduction to mql5 and development environment the first book part entitled describes the basics of the mql5 languages and development environment.one of the new features...
part 2. fundamentals of mql5 programming is an introduction to the key concepts of this programming language. like any other language, mql5 is based on several fundamental concepts...
part 3. object oriented programming in mql5 offers an immersion into the world of object-oriented programming (oop) in the mql5 language. software development often involves the co...
part 4. common mql5 apis in the previous sections of the book, we delved into the basics of the mql5 programming language and studied its syntax, rules of use, and key concepts. ho...
part 5. creating application programs in mql5 in of the mql5 programming for traders book, we'll delve deeper into the apis associated with algorithmic trading, including financial...
part 6. trading automation in of the "mql5 programming for traders", we will study a key component of the mql5 language. we will start with a description of the fundamental entitie...
part 7. advanced mql5 tools of the "mql5 programming for traders" book discusses the advanced capabilities of the mql5 api, which will be useful when developing programs for metatr...
this utility is simple example to add sound alert on connect / disconnectadd sounds wav files inside mql5\files\sounds foldercopy the code and compile the ea utility, the attached ...
lot sizing and/or number of trades for strategies like grid and martingale are very important.we always ask about what happened in history of a symbol during range zones and how ma...
the ea only trades buy positions and does not use sl and tp.settings:"---------- general ----------" commentar start trade end trade prder is closed "---------- risk- and moneyman...
please note that it will calulate drawdown based on magic number and symbol. if you dont want to consider the the overall account drawdown the remove the magic number filter and sy...
[@buy_sell_close] manual trading ea for trading newbies, ea can be used in backtesting visual mode, ea can also be used in live trading.you can practice your own trading system in ...
the book "" is your go-to guide for learning how to use machine learning and neural networks in trading. this book is intended for algorithmic traders who want to learn how to crea...
simple trail stop loss code example.it's not meant to use as it is. it's code sample for programmer reference only.nb: i just want to upload it to somewhere as a backup....
this code block detectsa new baror a new candlewhen it has received.the basic principle of the codes is very simple. first the code stores thetime of the previous bar / candle. (th...
this code block works if you use either a stop loss or not. requirements you need to include"trade.mqh " to get access to thectradeclass which allows you to work with positions an...
this metatrader 4 (mt4) script implements a simple continuous trend-following strategy for buying and selling based on predefined conditions. here's a breakdown of the script:initi...
this script will trail the stop loss of all open buy and sell orders.adjust the trailstart and trailstop parameters to your preferred levels.this is a basic example and can be furt...
this mql4 script is designed to close positions for a basket of currency pairs based on certain profit and loss thresholds. here's a brief description:the script is called "closeba...
in previous code i used thetimeto detect a new bar. this time let's use the bars countto detect a new bar. it's waylighter and fasterthan using the time method.declare the variable...
01. count "x" times and then pass. step 01- created a variable for set the count limit.you can use it as an input parameteras well of optimization in your code. step 02- create ano...
the basic premise of the strategy:buy/cover as soon asthe price breaks above n bars high short/sell as soon asthe price breaks below n bars low backtested on usdjpy 2013-2023, let'...
classic trailing => use stop loss to trail and it does reflect in your broker servervirtual trailing => does not trail using stop loss and it does not reflect in your broker ...
all orders this ea is modification of this how to use : 1. add this ea for any symbol2. set the variable value that you need to tp, sl, trailing, closing, treshold of profit or los...
with this code block, you can get the last closed trade data without using loops.create a variable to set the current day start time. (this is not necessary to do.) create some oth...
the code keeps track of orders' tickets in an carrayint. monitoring the changes to the list of tickets in ontimer it triggers these event handlers:note: not all features of the mql...
this particular expert advisor contains a very useful code which is often required by the developers. most of the time , we need the last active trade. but in this ea you can searc...
this ea will scan all closed trades in the history. and check which trade closed most recently. if we pass 0 , then it will fetch most recently closed trade, if we pass 1 then it w...