You are doing nothing with it so it's 0
Posts made by jstap
-
RE: UNIX TO CANDLE IDposted in Questions & Answers
No what I mean is: iBarShift(NULL,PERIOD_CURRENT,StrToTime(2024.03.11 08:58),false); Put that in a comment using text code input and look at what's returned, make sure the date time used is on the current screen
-
RE: simple expert but I can't do itposted in Questions & Answers
You have a lot in there that is unnecessary, use what's in the picture on tick to close, the on trade tab is predominantly for working with something that has just happened or what a trade is doing:

-
RE: SUP DEM EAposted in Questions & Answers
If it is still doing it recreate, but no trade blocks only allow 1 trade
-
RE: SUP DEM EAposted in Questions & Answers
Change buy to sell, sell to buy in both blocks, so it matches the buy/sell block.
-
RE: QUASIMODO FOREX STRATEGYposted in General Discussions
I will add this, sometimes (not always depending on whether the current candle value is needed), use once per relevant bar, this will limit the terminal's use of resources, and speed up backtesting, especially with ZZ.
-
RE: UNIX TO CANDLE IDposted in Questions & Answers
Exactly I only used " " to show the section to replace with your time, ultimately that code is expecting seconds after 1970
-
RE: How to count the symbol of opened tradeposted in Questions & Answers
Create a test project, then paste it here and I'll have a look.
-
RE: UNIX TO CANDLE IDposted in Questions & Answers
iBarShift(NULL,PERIOD_CURRENT,"time value",false);
-
RE: need help thanksposted in Questions & Answers
In a condition block to have a left and right operand, both will normally need to match. Test 1 condition at a time, but as I said multiple crosses are unlikely to happen at the same time.

-
RE: SUP DEM EAposted in Questions & Answers
You need 2 no trade blocks, one above buy, one above, sell set to relevant type, this way one can't beat the other.
-
RE: SUP DEM EAposted in Questions & Answers
A shared link, not a picture so inside blocks can be seen, the orange block is get information, not use information. Does this only place 1 trade?
-
RE: need help thanksposted in Questions & Answers
You don't have the candle IDs in the MAs, across only happens once, so expecting many to be true at the same time is unlikely, test 1 condition at a time and you'll see what works.
-
RE: SUP DEM EAposted in Questions & Answers
Add a shared pink not the MQ4, you probably need a no trade block above buy and sell
-
RE: how to read the indicator objects from chartposted in Questions & Answers
The only other way I know is to add a number/letters to a variable every time it's used, then with text code input add the two together, is quite a lot of work and might not work, another option is to use code and get the latest name. Either way put the name in a comment, so you see what is being returned.
-
RE: MT5 News Indicator Neededposted in Questions & Answers
Just copy and past blocks, the enum (dayfilter) can be used many times, for example, I will use it on separate days, to not trade for the day (like a holiday)

