You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
3. trailing the standard 'step' trailing.
This type of trailing is a modification of the standard one. If I'm not mistaken, once similar model was created byKimIV(but because relative is nicer... :) It differs from the standard trailing, in that trailing stop-loss is not transferred by points (for example, trailing stop-loss at distance of 30 points at +31, at +32 - by +2, etc.).For example, trailing at a distance of 40 pips and the stoploss distance of 10 pips, when we reach +40 stoploss will be moved to +10 pips and nothing will change until we reach +50 profit (40 pips + step) (i.e. we give a certain freedom to the price, which is the point of this algorithm), and only at +50 stoploss will be moved from +10 to +20 pips, at +60 stoploss will be moved to +30 pips and so on.
Parameters:
ticket - the unique order number (chosen before calling the function withOrderSelect());
trldistance - the distance from the current rate (points) at which we "trawl" (no less than MarketInfo(Symbol(),MODE_STOPLEVEL));
trlstep - the "step" of changing the stop loss (points) (no less than 1).
Iftrlstep=1, this function will not differ from the standard trailing stop. The main "feature" of this algorithm, again, is in providing the rate with some "freedom of movement" - Stop Loss is raised only after the price has "wandered around". This trailing algorithm I first encountered in the description of "Moving Channels" tactics rules already mentioned by V. Barishpolts.
=================
This one in the Expert Advisor is interesting
Here is its full code, to be inserted in place of
this
I recommend to start modifying an EA you like, rather than inserting it into your own - the result will be almost the same, but there will be less hassle.
Besides, the ability to read and understand someone else's code will come in handy...
I recommend to start modifying an EA you like, rather than inserting it into your own - the result will be almost the same, but there will be less hassle.
Besides, the ability to read and understand someone else's code will come in handy...
As long as he wants to have, not be able to!
))) That's where everyone starts... And then - the further into the woods, the fatter the partisans...
Can you please tell me how to write a code in an EA,
Which would form the High and Low for a certain period (e.g. 10.45 - 11.15)?
I have switched on the EA at 9.00 -> when 10.45 it switched on and started monitoring. When a bar closed (e.g. 15 min chart) 11.15 it reads and continues monitoring, for example I have identified High and Low and put orders not too far from these lines.
I thank you in advance for your feedback.
I can't figure out what principle is used to connect the tralling.
It should, in fact, just work
I can't figure out what principle is used to connect the tralling.
After all, it should, in fact, just work.
Nothing and no one will "just work".
You need to understand what this particular trail searches for, on what conditions it trawls, with what step, if there are any additional conditions.
If you take apart trawl code, everything becomes clear, but the principle "plug and play" does not lead to good results....