What you mean Level?
Level has a special meaing in MT,See its help : Controlling compilation about indicator_levelN.....
your EA use EMA, Stochastics and RSI .......
so you should edit and design yourselfs EA program id MetaEditer , and set any parameters in your programms.......
noone know what you mean "autoset"......
Level has a special meaing in MT,See its help : Controlling compilation about indicator_levelN.....
your EA use EMA, Stochastics and RSI .......
so you should edit and design yourselfs EA program id MetaEditer , and set any parameters in your programms.......
noone know what you mean "autoset"......
Hey,
thanks for your answer.
LEt me explain what i mean with "Level"
When you are in MET on a regular Chart. You decide to put an indicator on your chart. The properties window pops up. Now you can set a "level" (In my german version the property is calles Level) this is a horizontal line at a specivic value of the indicator (for example: I want a line at the value 50 of my RSI.
With "autoset" I mean that this line has to be there when the Strategy tester shows me the chart that it jsut testet. As of now there is only my RSI indicator with the "standard levels" 30 and 70 but i want to see the 50 as well.
i hope its clear now
cheers
alex
thanks for your answer.
LEt me explain what i mean with "Level"
When you are in MET on a regular Chart. You decide to put an indicator on your chart. The properties window pops up. Now you can set a "level" (In my german version the property is calles Level) this is a horizontal line at a specivic value of the indicator (for example: I want a line at the value 50 of my RSI.
With "autoset" I mean that this line has to be there when the Strategy tester shows me the chart that it jsut testet. As of now there is only my RSI indicator with the "standard levels" 30 and 70 but i want to see the 50 as well.
i hope its clear now
cheers
alex
if so, use sentence list below in you indicators files
#property indicator_level1 30
#property indicator_level2 70
#property indicator_level3 50
See help : Controlling compilation about indicator_levelN
parameter int mode should be MODE_MAIN to get main line value, is MODE_SIGNAL to get the signal value.
#property indicator_level1 30
#property indicator_level2 70
#property indicator_level3 50
See help : Controlling compilation about indicator_levelN
indicator_levelN | double | predefined level N for separate window custom indicator, where N lies between 1 and 8 |
double iStochastic( | string symbol, int timeframe, int %Kperiod, int %Dperiod, int slowing, int method, int price_field, int mode, int shift) |
parameter int mode should be MODE_MAIN to get main line value, is MODE_SIGNAL to get the signal value.

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
i just found this Website today after i downloaded MetaTrader yesterday its both great :)
Im trying to code my first Expert, while i could find solutions for my real problems on this site and in the dictionary, im stuck now.
What im trying to do sounds realy simple but eventually is harder than anything else. Im just trying to set Levels in Indicators by default.
My EA uses EMA, Stochastics and RSI and I'd love to have the right levels set when the backtester is done testing (i dont wanna have to put them in manually)
So i basicaly just need to autoset RSI 50 and Stochastic 20 and 80.
Could anyone please help me.
EDIT: i just thought of one more question ;)
how do i check if BOTH lines of the Stochastic ascend/descend when i use the value from iStochastic() i only get the value of the main line not from the signal.
Thanks again and have a good night...
Cheers Alex,
PS: there is still one tiny little question. Whats with the MACD in MetaTrader why is it only one line whereas there are 2 in any other software i know?