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
now we gonna check (it is wrong, but you have to find out / see what you do )
iMA is the function we use to calculate the moving average for the bar we want to know
it needs several inputs you see here as
//-------------
//-------------
the first inputtype is type string and symbol stands for the currency we want to have calculated
that can be one of the symbols you find at Market Watch (Ctrl + M) like "EURUSD" use " " for making it clear it is a string
if you use the chartsymbol then you can also use NULL or Symbol() where we like the most to see Symbol()
So for GBPUSD calculation on EURUSD chart we do
and for chart your program is attached you can do
//--------------
the second inputtype is type int (integer a number input)
Click on this link Timeframe enumeration
you see what inputs we can use for our second input
in your calculation
you are using 0 means if we on 1H chart you calculate the price_median over the count of hours you have chosen in the third input
we want to know not the hour not the minute not .....
only the price_median for a daily_period SO second input has to be............ ( ANSWER THIS QUESTION I REFUSE GIVING YOU MORE HELP IF YOU DON'T )
//------------------------
the third inputtype is also int and here you have to give the number of bars you do the calculation on
You have chosen here PERIOD_D1 if you have clicked Timeframe enumeration then you know what input you have given....
it's a wrong input for one day calculation
//----------------------
the fourth input
what does it mean if the input is here
5 that means .............................
-3 that means ............................
0 and 0 means ...................... Also here ANSWER
//-----------------------
the fith input see what you can use by clicking the link Moving Average method enumeration
if i wanted the average price_median of 10 days then the different methods you find in the link will give you different lines on chart
so did you had to choose for MODE_SMMA for calculate a daily price_median on a daily chart ??..............
what would be a better choice what is smooth mean ??
//--------- last inputs
Click on Applied price enumeration to see description different constant
//================================
Do a new attempt make it correct
you can check yourself with
do also with high of the day and low of the day
and see if ( high+low) /2 == YesterdayMedian
learn how to use iMA .... and other indicators
put the indicator on a chart and try to calculate the values you get if you open Data Window (Ctrl + D)
you can only program your own code if you understand the formula you are using
//--------
the fourth input
what does it mean if the input is here
5 that means .............................
-3 that means ............................
0 and 0 means ...................... Also here ANSWER