Thanks,
Perhaps you could possibly hook into what functionality you have that updates the variables in blocks to also search blocks of custom mql code type & replace any matches?
Posts made by kroghd
-
RE: Feature Request - Project Search & MQL Custom Blocksposted in Questions & Answers
-
RE: _Time Function doesnt correctly calculate Components timeposted in Bug Reports
Hi,
There seems to be a problem with the result being returned by _time function under time mode 'Components'.
I have implemented a block as a formula modification for my example because I'm trying to add 30 minutes onto a orders open time unix timestamp but the result wasn't right.
To isolate I set the left value to zero to see what the result coming from _time was.
If you setup like the picture you will see the function does not seem to be supplying the expected value of time beginning from 1st of Jan 1970 but seems like it is calculating from today as its starting value.
If you could please check this on your side.
Thanks
-David

......
fxd_time_calc.png -
RE: Variables Type Drop Down Consistency Issueposted in Bug Reports
Hi,
Just a small issue with projects that have large number of variables - the drop down list when you add a new variable does not have all the same options & text like an existing variable drop down list has until you press update.
This mainly is an issue due to integer - see attached picture/below.

Thanks-David
......
fxd_vars.png -
RE: Feature Request - Project Search & MQL Custom Blocksposted in Questions & Answers
Hi,
I have 2 feature requests if possible they would be a great help for local version & online version.
Feature 1 - Search Work Area for Text / ID - for online verison I use CTRL-F & my browser allows this but for local version I dont have this ability & I use it alot to find blocks by their name or ID - depending on what I'm trying to find.
Feature 2 - Variables Maintenance - When maintaining variables & changing names its great you update all blocks on the project if they were referencing the old name - could you extend the search & replace behaviour into custom mql blocks also. Sometimes I change variable names & forget about my variables in MQL4 blocks & it would be so much better if you searched & replaced for these also.
Many Thanks.
-David
-
RE: Local Version - Project Options Timer Event Period Saveposted in Bug Reports
Hi,
I am using the latest local version & the timer event period doesnt save the value you enter after pressing update.
For now I am modifying it directly in the code.
If you could please fix the problem that would be appreciated.
Thanks
-David
-
RE: Bug with Condition block & _OrderStopLoss Blockposted in Bug Reports
I understand - please post back when things have been fixed from your side so I can download again & check
-
RE: Bug with Condition block & _OrderStopLoss Blockposted in Bug Reports
Hi,
I think I have found 2 problems
First problem is with use of _OrderStopLoss MQL has error compiling - it complains about missing correct number of parameters
inside the else if (Mode=="fraction") needing the digits param to be supplied.Second is with trying to use condition block to evaluate result as ==.
Example is if I open an order with stoploss of 100 pipsI fill a variable with value of stop loss in pips using result returned from pips block from your _OrderStopLoss (fixed function so it compiles).
Trying to compare value of variable containing result from above to numeric 100 they are not returning as equal.
I cant seem to find a way to resolve the issue - it must be something to do with the double type variable results being somehow different so the comparison is always false.
I have tried Ro=NormalizeDouble(_value(100),Digits()); but this has made no difference.
Your help would be appreciated.
P.S - Do you give some extra days for finding bugs - unfortunately I have lost some time trying to figure out what has been the problem here

Thanks
-David -
RE: How do we include custom function using custom blockposted in Questions & Answers
Hi,
I have searched the help & forum & tried using custom blocks but cant see how to include a custom function created in the custom function area of custom block editor.
Can you please explain how to include & use a custom function within a custom block?
For example - I am trying to do something like the example shown in MQL4 reference index search for CORNER_LEFT_LOWER & see the example shown in that topic.
Thanks
-
RE: Cross Width Doesnt Saveposted in Bug Reports
Hi,
I think there is a problem - the cross width property on a condition block it doesn't retain the value e.g 2 when you update the condition.
If you would kindly confirm if this is a bug.
Thanks