[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 287

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
Here's the problem... Indicator buffers only work in indicators. you won't get anything by simply moving the code around, use standard and custom indicator calls in your script code. Technical indicators will help you
Here's the problem... Indicator buffers only work in indicators. you won't get anything by simply moving the code around, use standard and custom indicator calls in your script code. Technical indicators will help you
Question how to calculate the moment when these two crossed for the last time?
Ahhh!!! Thank you!!!
Question, how do you calculate the last time these two crossed paths?
There you go.
Good day!
Gentle traders, in one of the forum posts I saw an interesting "indicator".
If I'm not mistaken, the background of the 5th chart shows silhouettes of hourly candlesticks. That is, it was clearly visible how the price changed over the course of an hour.
Please, do not hesitate to download(igrok081@mail.ru) or suggest where to download, or at least even the name.
Thanks in advance .
Alexander.
There you go.
*shamefully* I didn't understand any of the code. But, pardon my fastidiousness, I wanted to know how to calculate the moment when these two crossed each other AT THE LAST SINGLE TIME? Maybe the code is correct and it starts counting only after it was run. if so, how can we make it check when it was before running the script?
How can I do it myself?
I understand a little but still want to know. how can I make it check if it was before the script was started and what the price was at that point.
explain to a dummy where the brew is. how do I do it myself?
Read here:
https://book.mql4.com/ru/samples/indicators
And here:
https://book.mql4.com/ru/samples/shared
the question remains. how can we make it check when these lines have been crossed recently? and what was the price at that moment.
Basically what I want to achieve:
I need the script to find the last crossing on the chart and subtract the price at the time of the crossing from the current price.
tell me how it can be implemented.
find out which bar was crossed and then find the time of the bar = crossing time
you can calculate the exact price of the crossing, but you cannot find out what the price of the instrument was, the best you can do is to know the bar number, and therefore its hight low open close
find out which bar was crossed and then find the time of the bar = crossing time
you can calculate the exact price of the crossing, but you cannot find out what the price of the instrument was, the best you can do is to know the bar number, and therefore its hight low open close