floraMerano: I want … I want … moving average is pointing to 2 o'clock
-
You have only four
choices:
- Search for it,
-
Beg at
- Coding help - MQL4 programming forum
- Requests & Ideas (MQL5 only!) - Trade FX - Expert Advisors and Automated Trading - MQL5 programming forum
- Free coding for your trading system.. - Easy Trading Strategy - General - MQL5 programming forum
- I will code & automate your strategy for free - Options Trading Strategies - General - MQL5 programming forum
- Make It No Repaint Please! - MetaTrader 5 - MQL4 programming forum
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- or pay (Freelance) someone to code it.
No free help
urgent help. -
Can't be done. 2 o'clock means an angle.
-
There is no angle from 2 anchor
points. An angle requires distance divided by distance; a unit-less
number. A chart has price and time. What is the angle of going 30 miles in 45
minutes? Meaningless!
-
You can get the slope from a trendline: m=ΔPrice÷ΔTime.
Changing the axes scales
changes the apparent angle, the slope is constant. Angle is meaningless.
-
You can create a angled line using one point and setting the angle (Object
Properties - Objects Constants - Standard Constants, Enumerations and
Structures - MQL4 Reference.)
The line is drawn that angle in pixels. Changing the axes scales does NOT change
the angle (and thus is meaningless.)
-
If you insist, take the two price/time coordinates, convert them to pixel
coordinates and then to apparent angle with arctan.
How to get the angle of a trendline and place a text object to it? - Trend Indicators - MQL4 programming forum - Page 2
-
There is no angle from 2 anchor
points. An angle requires distance divided by distance; a unit-less
number. A chart has price and time. What is the angle of going 30 miles in 45
minutes? Meaningless!
William Roeder:
Ok. You gave me an idea about what to search for, and that is finding the slope of the moving average. I think that would be a decent place to start. Thanks for the advice.
-
You have only four
choices:
- Search for it,
-
Beg at
- Coding help - MQL4 programming forum
- Requests & Ideas (MQL5 only!) - Trade FX - Expert Advisors and Automated Trading - MQL5 programming forum
- Free coding for your trading system.. - Easy Trading Strategy - General - MQL5 programming forum
- I will code & automate your strategy for free - Options Trading Strategies - General - MQL5 programming forum
- Make It No Repaint Please! - MetaTrader 5 - MQL4 programming forum
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- or pay (Freelance) someone to code it.
No free help
urgent help. -
Can't be done. 2 o'clock means an angle.
-
There is no angle from 2 anchor
points. An angle requires distance divided by distance; a unit-less
number. A chart has price and time. What is the angle of going 30 miles in 45
minutes? Meaningless!
-
You can get the slope from a trendline: m=ΔPrice÷ΔTime.
Changing the axes scales
changes the apparent angle, the slope is constant. Angle is meaningless.
-
You can create a angled line using one point and setting the angle (Object
Properties - Objects Constants - Standard Constants, Enumerations and
Structures - MQL4 Reference.)
The line is drawn that angle in pixels. Changing the axes scales does NOT change
the angle (and thus is meaningless.)
-
If you insist, take the two price/time coordinates, convert them to pixel
coordinates and then to apparent angle with arctan.
How to get the angle of a trendline and place a text object to it? - Trend Indicators - MQL4 programming forum - Page 2
-
There is no angle from 2 anchor
points. An angle requires distance divided by distance; a unit-less
number. A chart has price and time. What is the angle of going 30 miles in 45
minutes? Meaningless!
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,
I want to write an EA. What I want to do is to create a trend indicator that is based on moving average. The main idea is that if the moving average is pointing to 2 o'clock, that will give a signal of an uptrend. If the moving average is pointing to 4 o'clock, that will signal a downtrend. How could I do something like that programmatically using MQL4? Please advise me as to how I could achieve something like that as I am not yet familiar with the processes involved.
Thank you!