forex sessions indicator highlights the forex market sessions the indicator assumes local "wall clock" trading hours of 8:00 am - 5:00 pm in each forex market, except in sydney it ...
watch for gaps in the correlation between two trading instruments and trade one pair against the other.it is advisable not to leave the trading unattended.stop loss and take profit...
//+------------------------------------------------------------------+//| this little utility script open charts of open trades symbols//| and prints list of open trades symbols in...
you can simply add function void onchartevent(...) to your indicatorthe screens are from ea and its gui, indicator only changes window sizebefore compilation you need uncomment few...
this script sets pending hedges with distance in pips for chart symbol.if hedged are 100% harmonized strategy will do nothing,else calculates difference between buy and sell trades...
quoted from investopediawhat is the harmonic mean?the harmonic mean is a numerical average calculated by dividing the number of observations, or entries in the series, by the recip...
quoted from wikipedia:in mathematics, the logarithmic mean is a function of two non-negative numbers which is equal to their difference divided by the logarithm of their quotient. ...
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 modification will return a string indicating whether the pip difference is up, down, or unchanged.this code will print the price at the beginning and the end of the calculatio...
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...
dominant candle is a a two candlestick set where the wicks intersect each other's body area and body of the candles are either gapped up, gapped down or equaldominant candle is usu...
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...
the strategy implemented in the script "reverse_trades_for_all_trades_and_symbols_v1.mq4" reverses all open trades for all symbols on the trading platform. when executed, the scrip...
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...
this script is designed to perform candle analysis:data retrieval:the script retrieves the open, close, high, and low prices of candles for the financial instrument it is running o...
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...
the library contains basic public methods to manage grids:in above code:maxdd stands for "maximum allowed drawdown". this value is disabled by default but using the set method will...
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 ...
the indicator draws three line plots on the chart. it detects the current period, and you assign two other periods in the input which should compare to the current period.if the pr...
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 relative strength index is an age old indicator, that possess incredible edge to this day. the problem though, is its susceptibility to noise from the markets, generating a lot...
a simple indicator code for learners which may also help you in manual backtest by just moving a vertical line to show hide bars.add the indicator to chart and add a vertical line ...
i developed this indicator to provide an alternative to the standard moving average methods in the metatrader 5 bollinger bands indicator, which only offer the 'simple' method. wit...
quoted from wikipedia:in mathematics, the geometric mean is a mean or average which indicates a central tendency of a finite set of real numbers by using the product of their value...
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 indicator promote new way of analyses signals from standard indicator named rsi. main feature of rsi is level crossing signals. usually 30 and 70. but it's bad relative to rea...
in this simple expert advisor, we will be able to see the current winning /losing streak in the mt4 terminal. we have two filter options. one is based on symbol and the other is a ...
there are six different type of active or closed orders which isop_buy op_sell op_buystop op_sellstop op_buylimit op_selllimit this script will find the count of active /closed ord...
this simplae script will first sort the open tickets in asending order. then it will try to close them sequentially. that means the first trade will be closed first then the 2nd on...
this simple script will close /delete a order based on the input value passed on the script. for example if user pass op_buy then it will close all the buy trades. similarly if som...
this script calculates the total unbalanced postion of hedged or non hedged postions and then place hedge trades accordingly.exampletrader places 0.01 lot then 0.02 lot buy tradeif...
this particular script will find the biggest winning / losing trade among a list of trades and close them . if you want either of them then comment the code block accordingly.there...
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...