I'm lost again
For me variable is something that is defined and has value. Now I'm not sure if you want to get these values that I though you want... do you want (for example) to get Low of the candle where the trade is/was opened?
Posts made by fxDreema
-
RE: How to register values of variables Candle: Buy, Sell, lowposted in Questions & Answers
-
RE: How to register values of variables Candle: Buy, Sell, lowposted in Questions & Answers
Directly as a code, if I am not wrong, it's something like this:
iLow(Symbol(), 0, iBarShift(Symbol(), 0, OrderOpenTime())) -
RE: How to register values of variables Candle: Buy, Sell, lowposted in Questions & Answers
If you want to know how to record variables, this is something on it's own, and I posted example of this. You can define variables and then modify them with any values, this is easy... but if you work with multiple trades at a time it's not useful.
The way to do this is: based on the open time of the trade to find the candle that is located at that time and get it's parameters, but at the moment in fxDreema there is no something that you can select directly, but I can try to add something like this because it's not a bad idea. The problem is because there are 3 steps:- Get Open Time from the trade
- Use that time to find the ID of the candle around this time, here you need to specify Market and Timeframe.
- Knowing the candle ID we can get high, low, open or close.
-
RE: Помощ за МА пресичанеposted in Questions & Answers
Това което е в Adjust се залепя за функцията дето идва от съответния блок. Не знам как да ти го обясня, виж какво се случва в сорс кода като пишеш нещо там. Това ";" затваря функцията и след това може да се пише свободен код който не е "залепен" за нещо.
Това MathAbs се прилага към променлива както става ясно, ако в Condition имаш тази променлива... става. Вече стойността на пипса може да е в различен формат, може да е 20, може да е 0.0020 в зависимост от маркета, виж във Value - Pips. -
RE: Server Timeposted in Questions & Answers
This is the UTC (integer) format of the time. I don't know for the new MT4, the old one is doing this - outputs the time in it's integer form, but MT5 converts it in human readable format, so because now MQL4 is similar to MQL5 I think it's possible to do the same.
Otherwise to convert this time format to human readable format this function is used: http://docs.mql4.com/convert/timetostr ... but directly into Comment block try this: http://prntscr.com/2r7i95 -
RE: MetaTrader 4 Build 600 with Updated MQL4 Languageposted in Bug Reports
Well, I have updated only where the files will go (in MQL4/Experts instead of /experts) and the compiler that will compile them (mql.exe instead of metalang.exe). For the local version - it uses the local compiler from the MT4 installation that is linked within fxDreema. I have not changing the code itself. I guess everything should be compatible, but who knows...
These days I'm a little bit busy to set up my computers, because my main laptop broke and now I have new one with various new Windows 8 problems, and my mind is not exactly on MT4. So, if you have simple examples or something that shows problems directly...

Otherwise now MQL4 gives some warnings like this "unused variable", but it should work with them without problems.
-
RE: How to count candles only after the trade?posted in Questions & Answers
I still can't understand you, Google translate is not very good

Can you explain the strategy in steps, like this, as simple as possible:- do this
- do this...
-
RE: How to register values of variables Candle: Buy, Sell, lowposted in Questions & Answers
Every trade has information associated with it, attributes, parameters - lot size, type, sl, tp, open price, open time and others. Candles have these: open, high, low, close, time. I don't fully understand what you want to do with these? To get candle parameters of that candle where the trade was created?
-
RE: MetaTrader 4 Build 600 with Updated MQL4 Languageposted in Bug Reports
I updated fxDreema to write files in MQL4/Experts, but if there are MQL4 differences... I don't know, I was not tested everything. More details?
-
RE: Empty blocksposted in Bug Reports
I will check that, don't update these blocks. But I have some problems with my computer and I don't know when I will fix it, so if you have build 70 - you can use it.
-
RE: Помощ за МА пресичанеposted in Questions & Answers
Да бе, има някакъв проблем с шернатите проекти, ама ще го видя по-късно

Така изглежда добе, но и винаги можеш да провериш стойността на някоя променлива, примерно с "Indicator tester". А вместо тия Formula можеш да ползваш и Variables.
Няма значение дали има празно място, символа ";" означава край на някакво елементарно парче код и след него веднага започва друго. -
RE: Помощ за МА пресичанеposted in Questions & Answers
По принцип бих препоръчал да се знае малко програмиране, основите

Може да се сложи в "Custom MQL4 code" като: resultA=MathAbs(resultB)+MathAbs(resultC);
Или с трик да се сложи в някое Adjust поле като: ; resultA=MathAbs(resultB)+MathAbs(resultC)Забележи, че при втория начин ";" е отпред. Съдържанието на Adjust се намества между една затваряща скоба и едно ";", така че горния код разделя нещата на две независими части. Не знам как да го обясня точно, но става

-
RE: mt4 build 600, Proindicator(my indicator) does not workposted in Bug Reports
So it's working. I was not able to reproduce this exact error, but I was already found something else and it looks that both problems were connected

-
RE: Помощ за МА пресичанеposted in Questions & Answers
По някое време трябва да вкарам нещо такова, не че имам идея точно как, но иначе винаги може да се ползва тази функция: http://docs.mql4.com/math/mathabs
-
RE: How to count candles only after the trade?posted in Questions & Answers
I don't understand this request really
More details? -
RE: How to register values of variables Candle: Buy, Sell, lowposted in Questions & Answers
Then this one: http://fxdreema.com/demo/mt4-loop-how-it-works
Using "For each Trade" you can load the last trade only if you have "Not more than n trades" set to 1. Then you can check that trade's parameters using Condition - find (in loop) category there.
-
RE: Swing Trade EA using Heikin Ashiposted in Questions & Answers
I found problem with custom idicators and I updated web and local versions, but I think this problem was from yesterday.
Otherwise before modifying SL you can check if it's new value is above/lower the old one. I also found that Buy can be opened below the support line and then SL is above at invalid position, so i guess this also should be considered. Using "Condition" block with "(in loop).... -> Stop Loss (level, pips)" on the left side.
-
RE: mt4 build 600, Proindicator(my indicator) does not workposted in Bug Reports
I also detected that something is wrong with custom indicators. Meanwhile I'm rearranging my code and obviously I missed something. I will make 072 in a minutes... hopefully.