[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 387
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, please advise: My problem is the following: in the Expert Advisor, there should be only one signal to trade (when all three indicators have crossed their respective zones)
if(SignalType_1 && (RSI >= 35 && Stoch >= 20 && CCI >= -100)) return(+1)
Here is the question. How to write this line correctly, so that there is only ONE signal. (Otherwise, it turns out that the Expert Advisor makes deals according to the following algorithm: RSI crosses the line 35 - deal; STOCH crosses the line 20 - deal; CCI crosses the line -100 - deal; it makes three deals)
The signal for a deal only ONE when all three indicators crossed their zones
Try it like this:
Try it this way:
Afternoon.
1. How do you express the result of a trade, i.e. was it profitable or loss-making? For example, the last one?
2. How to make a virtual trade and take into account its result (sign) ?
Afternoon.
1. How do you express the result of the trade, i.e. whether it was profitable or unprofitable? For example, the last one?
2. How to make a virtual transaction and account for its result (sign) ?
1. Look at these 2 functions:
isCloseLastPosByStop
isCloseLastPosByTake
2. There is a very simple way for a virtual trade. Increase your deposit amount by 100 times, well, let's say, instead of the notorious 1000 quid take 100000. And lots of a virtual position reduce to the limit - to 0.01, for example, with a working lot, such as 10. 0.01 of 10 - this is one-tenth of one percent - completely imperceptible losses and profits.
Deal mark: isLossLastPos
Help me solve the problem, why if the loop has only 2 passes i first equals 0 and then immediately equals 4?
From this script the alert outputs 0, 4.
Well, maybe it's patamushta:
Maybe it's better this way:
1. Check out these 2 functions:
isCloseLastPosByStop
isCloseLastPosByTake
2. For a virtual trade there is a very simple way. Increase your deposit amount by 100 times, well, let's say, instead of the notorious 1000 quid take 100000. And lots of a virtual position reduce to the limit - to 0.01, for example, with a working lot, such as 10. 0.01 of 10 - this is one-tenth of one percent - hardly noticeable losses and gains.
Deal sign: isLossLastPos
Thank you. But there must be a more elegant option for virtual inputs, surely. "Increase the deposit size by a factor of 100" - I'm afraid I don't have that option in real life)). Pro's, don't pass it by!
Thank you. But there must be a more elegant option for virtual inputs, surely. "Increase the deposit size by a factor of 100" - I'm afraid I don't have that option in real life)). Pro's, don't pass it by!
https://www.mql4.com/ru/search#!keyword=%D0%B2%D0%B8%D1%80%D1%82%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F%20%D1%82%D0%BE%D1%80%D0%B3%D0%BE%D0%B2%D0%BB%D1%8F&module=mql4_module_articles
https://www.mql4.com/ru/search#!keyword=%D0%B2%D0%B8%D1%80%D1%82%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F%20%D1%82%D0%BE%D1%80%D0%B3%D0%BE%D0%B2%D0%BB%D1%8F&module=mql4_module_articles
Thank you.
Try it like this:
Good afternoon.Tried to fix it now owl makes only one trade closes at stop loss and that's it.No other trades open.Tell me what's wrong
Good afternoon.tried to fix now owl makes only one trade closes at stop loss and that's it.no other trades open.tell me what's wrong