-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by cmillion
-
-
Sorry for my English, I write through the translator.
There are many shows of my work, I decided to present the latest development in person.
Councilor trading stop orders, we can put a fixed grid or make it a rubber.
You can put the variable in both sides of the lots, and many other things that do not understand, write to ask.
Options Advisor:
extern int Orders = 8, / / maximum number of lines / / In each direction (not exceeding 99) extern double lot1 = 0.5; / / LOTS sottvetstvuyuschih orders extern double MinusLot = 0.0; extern int FirstStep = 0, / / the first step from the current price, if 0 then put Step extern int Step = 0, / / distance between the lines, if = 0 then the grid-locked at a price extern int StepPlus = 0, / / grid with an increase from the current price, 0 - flat grid extern int SLoss = 0, / / stoploss extern int TProfit = 0, / / takeprofit extern double ProfitClose = 50; / / close all orders upon receipt of profit extern double TrailingPercent = 50, / / if 0, then a warrant may be locked for ProfitClose otherwise they trawl, / / From ProfitClose a setback in TrailingPercent percentage extern int SleepTime = 0, / / timeout after closing orders in minutes extern int magic = 1000; extern double Diapazon = 0.5; / / coefficient of expansion of the grid extern bool CloseEndWeek = true; / / close the warrant at the end of the week if there is no open market extern int HourClose = 18, / / hour of closing orders on Friday extern int Key = 0; extern bool DrawInfo = true; / / output to the screen extern bool SendMailInfo = true; / / Sending information to the post office
Happy trading!
- zidainis, zoop, insider007 and 1 other
- 4
TrailingStopFrCnSAR
in MetaTrader Expert Advisors
Posted
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!.