Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 769
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
Help please, we need to add time to the Expert Advisor. who can help, please contact me in person. as a thank you, i will share my idea
Please help me, I need to add the running time to my EA.
Try this script to pull out some useful features for your EA.
Please help me, I need to add time to the Expert Advisor.
Try this script to pull out some useful features for your EA.
Thank you
Well, you can get something useful and sometimes even extraordinary out of every code.
Codebase is designed for this very purpose, not for what two people do with it.
P.S. I got a good idea, I will need to rewrite the array of structures, somehow it did not even think about it before.https://www.mql5.com/ru/code/24787
The codebase was created for this very purpose and is designed to do the things two people do with it.
https://www.mql5.com/ru/code/24787
Study it, or edit the class that holds the data to suit your needs , in my case it is CZigZagPeak , dynamic lists are cool!
Thanks, I'll have a look in the evening!
Good afternoon.
Help with the code, please, as I'm not a programmer myself :(
I need a part of code to calculate the distance between orders.
The essence of the block:
Runs once a week on Monday at the beginning of trading session opening.
Historical data for the previous month are loaded. (D1) (How to determine the last month or just calculate 30 days)
All candle sizes are recorded taking into account shadows of each candle on D1 and average size of a candle for the month is calculated.
Also we calculate the average value of the candlestick size for the last week.
Then the average value between the month and the week is calculated and divided by N parts. This will be the distance between the orders.
Good afternoon.
Help with the code, please, as I'm not a programmer myself :(
I need a part of code to calculate the distance between orders.
The essence of the block:
Runs once a week on Monday at the beginning of trading session opening.
Historical data for the previous month are loaded. (D1)
All sizes are recorded taking into account shadows of each candle on D1 and the average value of candle size for the month is calculated.
The average value of the candlestick size for the last week is also calculated.
Then the average value between the month and the week is calculated and divided by N parts. This will be the distance between the orders.
Use the ATR indicator