10.x H4 Pending Order Placement Script
Use this when you spot a trade setup. Drag it onto the chart and the script will:
- Calculate the pivots - I have pinched the code in Bob's zip file for this, so any changes there need to be made here.
- Calculate the MA.
- Calculate the trade direction - market > MA is a buy stop; < MA is a sell stop.
- Send the MA as the stop loss with the trade.
- Calculate which resistance (buy) or support(sell) level at which to place the pending trade.
- MinimumPipsToNextSR tells the script to move outwards a pivot if the next one is too close. For example, if you drag the script to send a pending buy less than MinimumPipsToNextSR from the weekly pivot, it will instead send the trade at MR1
- Allow you to select the same tp levels as are available in ITM.
- BufferPips: this is the number of pips above (for a buy) or below (for a sell) you wish you pending trade to be set away from the relevant pivot.
- The moving average inputs allow you to configure the MA to accord with your manual experimentation.
- works as does the H4 version, apart from using the D1 pivots shown on the H1 chart.
- extra inputs, taking a buy trade as an example:
- TpUsesOneLevelAway: puts the tp at the next pivot above the pending price.
- TpUsesTwoLevelsAway: puts the tp two pivots above the pending price.
- SlUsesOneLevelAway and SlUsesTwoLevelsAway: go on, take a guess.
10.4 Individual Trade Manager
DO NOT USE ITM UNLESS YOU ARE TRADING 10.4 EXACTLY AS SPECIFIED. Muck around with the system and ITM will not work as you intend. It is not a mind reader.
Initial bugs are squished, so we can start to expand the features in the bot.
10.5 H1 CSS colour change order script.mq4
- Use on a lower timeframe - Jem recommends the H1.
- the script:
- sends a buy trade when the market is above the MA and the CSS bars change from brown/goldenrod to green.
- sends a sell trade when the market is below the MA and the CSS bars change from green/goldenrod to brown.
- Control the trade direction manually by:
- setting TradeLong and TradeShort to your desired combination.
- setting MaPeriod to zero. If MaPeriod > 0, it controls the TradeLong/Short inputs.
- closes a buy trade when CSS changes back to brown, then removes itself from the chart.
- closes a sell trade when CSS changes back to green, then removes itself from the chart.
- the script looks for a trade at the open of each new candle. Value and colour displays are the close two, then 1 candle ago.
- the inputs should be straightforward to work out, apart from:
- LoopPauseSeconds: a script is a run-once then remove thingy. The code needs to go into an endless loop to force a script to work as does an EA. This input tells the script how long to wait before looping around the code again. The default is 1 second.
- You need 10.5 CurrencySlopeStrength1.0.7d for automation.mq4 in your indi folder. You do not need it on your chart - continue to use the version with the full list of inputs. The automation version has a lot of inputs removed to make calls to the indi easier.
- remember you lose a script if you have to restart your platform.
Jem's CSS trade manager.mq4
Jem emailed me last week to ask me to code a multi-pair EA that will close open trades when CSS on his chosen timeframe changes to the opposite colour i.e. close a buy when CSS turns red and a sell when it turns green.
Jem's CSS trade manager does this - at least it has in testing today. Requirements:
- you need 10.5 CurrencySlopeStrength1.0.7d for automation.mq4 in your indi folder. You do not need it on your chart.
- load the EA onto a single chart and it will look for CSS colour changes on all trades whose magic number match that of the EA's MagicNumber input. Time frame is irrelevant; this is controlled by the timeFrame input.
- if you have the indi loaded onto any of your charts, make sure that the inputs of the indi and the EA match.
Links to contributions by other members
- Zool has placed some line-based order-placing scripts at http://www.stevehopwoodforex.com/phpBB3 ... 669#p39669
- lhDT has coded a fabulous dashboard - http://www.stevehopwoodforex.com/phpBB3 ... 452#p40452 for details and download
- Sangmane edited Lifesys EasyOrder - zip with everything you need plus instructions attached here. Details in this post: http://www.stevehopwoodforex.com/phpBB3 ... 912#p40912
- MrLong has contributed the Potential_10_4 Dash, which shows potential trades in a dashboard. It is an EA and so needs to go in your EA folder.
- Another dashboard by candletiger at http://www.stevehopwoodforex.com/phpBB3 ... 428#p44428
- gms CSS trade manager: http://www.stevehopwoodforex.com/phpBB3 ... 698#p65698