[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 530

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
...and decide - here is also for you a code section of one of the ILANINS of the "Villagers" branch - calculation of the average price of the market orders and the target price of the PriceTarget - this is the b/w level + TP. TP is already at your discretion - adjust it to your needs as well:
Instead of this NewOrdersPlaced () and OrderModify()
you will have the level of drawing (setting) your b/u line - the whole mosaic is in your hands - edit.
Here is my code section - responsible for accounting of total loss of consecutive losing trades of this particular EA (according to magician). I made it for my version of netting Avalanche - adjust it to your needs - the code is commented out...
Global Variables
This code fragment is followed by a loop through the open orders of this very EA and calculate their total profit. After that, you compare this value with the variable
and make a decision.
Iteration' - variable not defined D:\Programs\MetaTrader 4 - RoboForex\experts\NewCobWebPivot.mq4 (234, 17)
Iteration' - variable not defined D:Programs/MetaTrader 4 - RoboForex/experts/NewCobWebPivot.mq4 (204, 3)
Iteration' - variable not defined D:\Programs\MetaTrader 4 - RoboForex\experts\NewCobWebPivot.mq4 (234, 17)
Look at the simple way offered to you by Yuri Reshetov on the previous page.
If it does not suit you, then assemble a mosaic of your suggested code sections.
Also on the subject, it might be useful to disassemble the owl code completely - from my last post - the b/w level is ILANIN from the CELAN Double_Minus_1 branch. If you take it apart bones by bones, it will clarify the solution to your problem better, IMHO. If you are going to draw a line, you need to know how to work with objects. THESE things, IMHO, can't be solved by a "middle-level programmer" at a glance and without a push... :-)
Code owl on averaging and b/w + TP in the trailer.
This is not an error. Errors in the logbook are marked with red, not yellow icons.
Why isn't it working then?
I don't have Skype here.
Try the simplified version, see how Yuri Reshetov recommended you on the front page - enter his code right after mine.
See the full received code with comments:
I don't have Skype.
Try the simplified version, see as Yuri Reshetov recommended on the previous page - enter his code right after mine.
See the full received code with comments:
'TotalCloseProfit' - variable not defined D:\Programs\MetaTrader 4 - RoboForex\experts\NewCobWebPivot.mq4 (251, 24)
Most importantly, don't forget to enter YOUR action code when you exceed the b/w level here: