cmillion Posted April 21, 2011 Report Share Posted April 21, 2011 Sorry for my English, I used a translator. Description: The innovations of this script: Script is able to creep on portfolio profits, ie foot begins to expose only the general level of all warrants, without loss of direction The script can be placed in one window and pointing SymbolAll = true it will be a warrant sweep on all instruments Added definition of long trawl for the indicators Parabolic and Velocity It can be run as a separate counselor or as a script. Depending on the variable TrailingStop, trailing may be made on fractals (foot exhibited at the nearest fractal indented = delta), at the extrema of previous bars (respectively to Buy Low-delta), the indicators and Parabolic Velocity or at a given count-wu points. TrailingStop = 1, / / "0-off 1-Candle 2-Fractals 3-Velocity 4-Parabolic> 4-pips"; delta = 0, / / offset from the fractal, candles or Parabolic only_Profit = true; / / sweep only profitable orders only_NoLoss = false; / / instead of simply translating Thrall in bezubytok only_SL = false; / / sweep only those orders that already have SL SymbolAll = true; / / sweep all the tools Portfel = true; / / sweep on portfolio profits Additional options: If TrailingStop = 4, then to determine the distance the stop indicator is used Parabolic: Step = 0.02; Maximum = 0.2; Magic = 0; If TrailingStop = 3, then to determine the distance the stop indicator is used Velocity: VelocityPeriodBar = 30, / / parameter is an indicator Velocity (rate of price change) K_Velocity = 1.0; / / magnification factor stoploss of Velocity Visualization: The screen displays information about the ongoing work of the script: installation with which the script is running number of orders that the script works minimum levels of exhibiting stops (-) current levels are possible stops (price tags) current levels of breakeven (price tags) Example of work: http://codebase.mql4.com/c/codebase/2010/07/42.gif On the screen, Thrall set the level of portfolio profit and is calculated by fractals. Once the level set SL (lower price tag) will be higher than the break-even (top price tag) so the script will set the SL for all orders regardless profitnye they are at the moment or not. At the close of all warrants for those footsteps overall profits remain positive. Tips: The script finishes when all orders are closed. To better understand the work of Thrall and visualization of orders, I recommend using indicator OrderBalans. Scripting can work without indicator Velocity, instead you can use any indicator of speed. http://codebase.mql4.com/6907 My work: http://cmillion.narod.ru Good luck!. Pheniox, KING_BUNDA, halcyonn and 3 others 6 Quote Link to comment Share on other sites More sharing options...
⭐ deadsoul Posted April 22, 2011 Report Share Posted April 22, 2011 @cmillion thank you so much ...you are a good coder..can you give more ?.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.