Of course ! I keep forgetting something this powerful is in the browser. Many thanks.
Posts made by Mantadiver
-
RE: Search for block in diagram by numberposted in Questions & Answers
-
Search for block in diagram by numberposted in Questions & Answers
Is there a way to search for and find a used block by number ?
I imagine it would be pretty difficult to do but just asking in case I missed something.
I have a fair few blocks & now I have a message warning me of an issue in a certain block number but finding that block is a bit like playing "Where's Wally".
Many thanks
-
Comment block justificationposted in Questions & Answers
Is it possible to amend the "Comment" block so that labels left justify but the corresponding values right justify ?
If not could it be considered for a future update please.
-
2 decimal placesposted in Questions & Answers
I have noticed when displaying data on screen using "Comment" & "Draw Text" blocks that often numbers display to 12 decimal places. In my opinion 3 is enough to show you have a sense of humour & 2 is what I am after.
I have tried using NormalizeDouble on numbers I am generating but what about system generated values ?
For example (attached) this is the Account / Margin Level (in %). It shows 12 decimals. Can the system be made to restrict it to 2 or do I need to place it in a new variable & amend it (seems a bit wasteful).
This also seems to happen when generating values from Buckets.
Many thanks.

-
RE: Is it possible to set core Magic number from variable ?posted in Questions & Answers
I couldn't find availability of that input parameter in any of the block so I created a simple code block: [MagicStart = My_Magic_Start;]
Works great, thank you.
-
Zero divide after EA / MT4 restartposted in Questions & Answers
Hello,
I am testing an EA to ensure it can cope with an MT4 restart.
After a restart I am getting zero divide errors.
The first is in a custom mql block at the point:- MarketInfo(Symbol(),MODE_TICKVALUE)
It finds the correct value when run normally but after a restart it returns zero. (I have got it to write to the log on restart).If I remove that piece of code it then gets stuck on an internal function LotStep.
lowerlots = MathRound(lowerlots/LotStep)*LotStep;
which can be traced back to:-
double LotStep = SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP);
Again it is the SYMBOL_VOLUME_STEP that is returning a zero.
Any ideas why this would work on first load but not after a restart ?
Many thanks
-
Is it possible to set core Magic number from variable ?posted in Questions & Answers
Hi,
I already assign different magic numbers to each trade, which as I understand it are a suffix to the core magic number defined in:-
Project Options / Genertal Properties / Magic Number
I would be interested to know if it is possible to change the core Magic Number (Project Options / Genertal Properties / Magic Number) from a user entered external variable input when the EA starts.
This would be useful for running multiple versions of the same EA on the same pair.
Many thanks.
-
RE: Phantom variable entriesposted in Questions & Answers
OK many thanks roar you are absolutely right.
Personally I cannot see a reason why mouse scroll would be useful here.
The ability to inadvertently change settings that could have a material impact on the EA is potentially huge.
Unless there is a really good reason that outweighs the risks I for one would like to see the ability to mouse scroll in these variable fields removed.
-
RE: Phantom variable entriesposted in Questions & Answers
OK many thanks I'll keep an eye on that. It would be fantastic if that is the issue. Would really hate for something like that to cause doubt over my confidence in such a great product.
-
Phantom variable entriesposted in Questions & Answers
Hi,
I am experiencing an issue periodically whereby phantom values are appearing in the variable tabs on blocks.
I am 100% sure they have not been typed in manually.
-
I cannot replicate, it just occurs.
-
What if it changed a critical variable value - i.e. My max number of trades or lotsize ?
-
It takes an age to open each block & clicking on the variable tab to find out which is the offending block.
I am just reporting what I am experiencing & appreciate that it's not giving much to go on in terms of being able to replicate the problem. But it has happened enough times over the past two weeks for me to post this message.

-
-
RE: What is "Change Status to" used for in a block?posted in Questions & Answers
Just in case you are minded to remove this feature, I for one also find it extremely useful. It is a great way for the EA to tell you where it is up to without having to create additional blocks.
-
RE: Trigger a block when an existing trade is closed by broker PT or SLposted in Questions & Answers
Excellent, many thanks.
-
Trigger a block when an existing trade is closed by broker PT or SLposted in Questions & Answers
I have a number of scenario's where I use blocks to close trades & then write to the log &/or send push notifications.
Crazy thing is I can't figure out how to identify when a trade is closed at broker SL or PT. Obviously the trade is no longer live but how exactly can I identify this as an actionable event to trigger my reporting blocks ?
Many thanks
-
RE: Is there a way to run EA with computer off?posted in Questions & Answers
For what it's worth my experience has been to ask the broker where their servers are and find a VPS that uses the same datacenter. I am in Australia but the broker server is in London. The VPS is in the same Equinix datacentre reducing trade latency from circa 400 milliseconds (Australia to London round trip) to less than 5ms. Often it can be <=2 ms.
-
RE: Filter trades by age. Number of bars elapsed rather than minutes.posted in Questions & Answers
The candles I am using are achievement based and therefore each one has a different amount of time.
I have resorted to:-
a) Running a continuous bar count on each bar open = (Current Bar Number)
b) Recording the current bar number when a new trade is placed = (Trade Start Bar Number)
c) Calculating the number of bars between now & when the trade started = (Current Bar Number) - (Trade Start Bar Number)A little crude and simple but appears to be working.
Many thanks for the input.
-
RE: How to add values of double variable to string variableposted in Questions & Answers
I have tried your suggestion and every other combination I can think of but keep getting error message "Undeclared identifier" with reference to whatever constant I use.
I am entering the test in the input field of a Log Message block. Am I missing something ? Many thanks.
-
RE: How to add values of double variable to string variableposted in Questions & Answers
I have been trying to add a string and a variable to a third variable to use in a Log Message.
The above example looks plausible but I cannot get it to work. It does display the variable value but omits the text element.
Should this work ?
As a workaround I have used someone else idea of a custom code block with Output_Variable = "Text " + (string)Input_Variable;