Hi to ALL,
New year has come and to achieve new successes we should use new tools and generate new ideas.
Now I wish to present the new build of expert which should satisfy each of you and except for it to become a basis for the further improvements.
What new?
The architecture of the expert is seriously changed, new options are added.
The code of the expert can serve as a pattern for other trading systems.
Especially I wish to explain following input parameters:
TrailingStop = false; Trailing Stop Switch
SwingTrade = false; Swing Trade Switch
FirstStop=false; First Stop Switch
PendingOrder=false; PendingOrder/InstantExecution Switch
PendOrdGap=10; Gap from High/Low for Pending Orders
ZeroLossLevel=0; Zero Loss Level in points
'TrailingStop' switch your trade from 'trailing stop' mode(true) to 'without trailing stop' mode (false). Formula for trailing stops is:
for long TS = StepMA - Kv*StepSize
for short TS = StepMA + Kv*StepSize
'SwingTrade' switch trade from 'Swing' mode (true) to 'No swing' mode(false).
It means, that if you have chosen a mode 'true' after BUY there will be SELL and on the contrary. At ' false ' this sequence will not be observed.
'FirstStop' switches protective stop at opening the order.
If you use 'TrailingStop' on 'true' this parameter switch on 'true' automatically.
Parameter Ks varies value of protective stop according formulas:
for long FS = Low[1]-Ks*StepSize
for short FS = High[1]+Ks*StepSize
'PendingOrder' on 'true' enables you to trade with the Pending Orders.
'PendOrdGap' defines distance from High/Low to BuyStop/Sellstop levels for the Pending Orders and usually equal 10..15 points.
'ZeroLossLevel' defines breakeven level in points. This parameter works as follows:
for instance ZeroLossLevel=30
if your profit reaches 30 pips, expert moves Stoploss at OpenPrice +/-1 point
for Buy/Sell Orders, if profit = 60 then Stoploss = OpenPrice +/- 31 point and so on.
Who have questions, don't hesitate please.
Your,
Igor
|