Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1829

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
hello!
Decided to make owls a bit more complicated.
I want to do something like trailing, but with a single / double action
idea:
price passed 75% to take - stop decreased (for example) by 20 pips and take increased by 20 pips.
price passed 90% to take- stop decreased (for example) by 30 pips and take increased by 10 pips.
Thank you. it's interesting. I'll try to figure it out!
it turns out thatif(Bid is the current price parameter - which is not called in any way - you can just compare certain values with it?
and the unit ofBid is ticks? (it's not expressed in money)
I have only one small thing to worry about. All orders are closing now and then (i.e. all and always!), but sometimes, if i open 3-4 orders, only 2 or 1 of them might close. I think there is a special i-check for this, may be you can hint.
Thank you. it's interesting. I'll try to figure it out!
it turns out thatif(Bid is the current price parameter - which is not called in any way - you can just compare certain values with it?
and the unit ofBid is ticks? (it's not expressed in money)
Bid is current price, so compare with the opening price +/- condition
As for ticks, neither Bid nor Ask is measured in ticks. The ticks are the arrival of a new price.
Bid is current price so we have to compare it with the opening price +/- condition
As for ticks, neither Bid nor Ask is measured in ticks. The ticks are the arrival of a new price.
I see. Then what is it measured in? pips/pips?
I see. How is it measured then? in points/pips?
MarketInfo(_Symbol,MODE_TICKSIZE);
I see. Thank you.
I have only one small thing to worry about. All orders are closing now and then (i.e. all and always!), but sometimes, if i open 3-4 orders, only 2 or 1 of them might close. I think there is a special i-check, may be you have a clue.
Do not neglect brackets, try this
How to get extremes of ZZ in D' format 2021.01.05