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
Good evening, can you help me to translate from Rumus2 into mql4 the following
n = inparam("N=", 1, 3000, 120) ;
n1= inparam("smoothing ", 1, 100, 14) ;
Cn=hhv(c,n) ;
Hn=hhv(h,n) ;
Ln1=llv(l,n) ;
R=-100*(Cn-c)/(Hn-Ln1) ;
R1=mov(R,n1,E) ;
u20=-20 ;
u80=-80 ;
u20 ;
R ;
R1 ;
u80;
To add a parameter to its own indicator, the reserved word inparam is used , after which the name of the parameter (string in double quotes), the minimum value of the parameter, the maximum value of the parameter and the default value are specified in parentheses. To use this parameter in the indicator text, its value should be assigned to a variable, which can be used in functions.
The HHV and LLV functions return respectively the largest and smallest value from the range, specified in the function parameters. The functions have two parameters - the specification of the data array to be compared and the number of elements being compared, including the current one. For example, the function hhv ( Close, 16) returns the largest close price of the last 16 candlesticks including the current one. Not only candlestick parameters, but also functions or variables can be used as a data array.
Hi. Please write an EA with three Ma2s. When MA1 crosses MA2 from bottom to top buy,MA3 is above. To sell MA1 crossing from above downwards MA2,MA3 is below. Execution is better in a point of intersection, it is possible Slippage to open the order for sure. If there is one order, the second such order should not be opened, but if there was a crossing for the opposite order, it should be opened.
This is a variable. It is more convenient to test.
extern int Magic = 12345;
extern int Slippage = 10;
extern int TakeProfit_Buy = 100;
extern int TakeProfit_Sell = 100;
extern int StopLoss_Buy = 200;
extern int StopLoss_Sell = 200;
extern int TrailingStop = 0;
extern double Lots = 0.01;
extern int per_MA1 = 15;
extern int per_MA2 = 30;
extern int per_MA3 = 100;
extern int shift_MA1 = 1;
extern int shift_MA2 = 5;
extern int shift_MA3 = 8;
extern int MA1_method = 0;
extern int MA2_method = 0;
extern int MA3_method = 3;
extern int MA1_price = 2;
extern int MA2_price = 0;
extern int MA3_price = 2;
Aaaaahhhhhhhhhhhhhhhhhhhh is anyone alive?
Aaaaahhhhhhhhhhhhhhhhhhhh is anyone alive?
If you don't want to be bothered, take up paid writing, it will be quick and in the best possible way )
Relax and have fun :)
If you don't want to be bothered, take up paid writing, it will be quick and in the best possible way )
I don't sweat it. For 100 euros you don't have to thank me.
I don't care. For a hundred greenbacks, no thanks.
Sometimes they do, look for better ones.
No one is talking about 100, for the above 10 is quite normal. In general, programmers don't usually queue up to work for free ))
WHAT COMES FIRST, MONEY OR GOODS? How do I see the Expert Advisor?