When I click the question mark on custom blocks (in online version) I get this
TypeError : Cannot read property 'trim' of undefined
What should I do? Do you have an explanation on that?
When I click the question mark on custom blocks (in online version) I get this
TypeError : Cannot read property 'trim' of undefined
What should I do? Do you have an explanation on that?

I putted this block in my EA and I got an error today in the morning. Now all my projects has gone away. The two you can see in my account are created later.
Not that hard for me because I didn't used Online version seriously so far but I am going to...
I am on switching from offline to online version and running in trouble with my custom blocks:
There is a global variable
int aLoopIndex[];
and here the source of my loop block which worked in Desktop version:
int This_Block_Id = FXD_CURRENT_FUNCTION_ID;
if (ArraySize(aLoopIndex) < (This_Block_Id +1)) {
ArrayResize(aLoopIndex,(This_Block_Id + 1));
}
for (int i = 0; i < Cycles; i++) {
aLoopIndex[This_Block_Id] = i;
~next~
}
aLoopIndex[This_Block_Id] = -1;
~inext~
Now in online Version FXD_CURRENT_FUNCTION_ID is not working anymore.
What is the right variable to use instead?
Problem 1: I need to loop through an array of Symbols and execute some code blocks for each iteration knowing the number of iteration.
Problem 2: I need to nest those loops
Solution 1: A custom block which sets a global LoopIndex
Solution 2: Setting this global LoopIndex as an array with the block numbert as identifier.

Do not forget the global variable at the bottom of my image
Now you can use the new block several times....
As input for the block (cycles) use the ArraySize of the array you want to loop through.
To know the current iteration use aLoopIndex[BlockNumber] where BlockNumber is the id of the loop block. Sample is looping through aFoo and Alerting the current iteration and the current Array Element:

Put the changes in an mqh file and in any custom block you can include the mqh
But the function itself works and this "zero divide" thing is correct. I mean, it is a fatal error, but this error basically says that there is some problem with the symbol that s
I had an understanding problem in custom blocks.
Setting variables in the Variables List on white button (on Block entry) and then using this variable as input tricked me, because the input is taken before the variable is set by white button. Hopefully this is understandable. Now I set CurrentSymbol in the pass block and it works

I found the bug for me:
I was looping through the allowed Symbols in my EA and when i have a non existing Symbol I get this strange error at a place where I wouldn't expect it.
Some Alerts in the MT4 source Code are always helpful for debugging. 
I have same issue in double PipValue function when I use the block
No pending order exists
i can not find the PM function anymore
we have a licensing solution under developement for ea's with online check and timelimited and accountlimited solutions
Hi Radoslav,
the problem for the desktop loving guys is simply explained: Your FXDREEMA is simply the best
And yes I understand your complains. I was leading a lot of IT Projects in the past and I am a web devloper like you. For the database there is a simple solution which is useful for the web and desktop as well:
At first create a table lets call it migrations.
Every time you have to modify the database you write a migration script (this is what you have to do anyway) then you give this script a name and a number. Name for readability only.
On startup you make a lookup in the migration table and in the ini. lets assume in the ini the most recent migration is 42 and the lokup in the DB its 38, then your software hast to run the scripts 39, 40, 41 and 42.
This way you will never have to deal with any old DB Versions.
Depending on your needs you can write the "anti" migration for posible needed rollbacks. That requires good planning of course because deleted columns you can never rollback.
Writing this kind of versioning is helpfull if you find out that an update needs an rollback
Did you see my link to http://electron.atom.io ? Its a tool to create desktop Versions from nodeJs, JS, HTML and css
I was told about that from a friend who says its really easy to use compared with the php variant you used in the past for the old desktop.
You are solving problems with the desktop version sounds great 
Maybe the unbeloved old desktop version can be easy replaced by a more recent offline version of the current online version using this tool to create a desktop app from existing code:
http://electron.atom.io/
I also often work with arrays and I always encapsulate them in a function with a static array
Its a way of pseudo OOP in MQL4
// usage
// index and value both empty gives back the arraysize on int & index
// index empty value set is array push
// index set value empty is get value
// index set value set is set value
double myArray(int &index = EMPTY_VALUE, double value = EMPTY_VALUE){
static double arr[];
// pseudo code from here
if (index is empty) resize array by +1
if (index out of array) resize array
if (value is Empty) return value of arr[index]
else set arr[index] to value and return value
}
@Emit Hi Emit
ich könnte das tun. Ich / meine Firma machen das professionell.
Gruß
Norbert
CEO bei Brainfinder LTD
www.brainfinder.eu
I understand but is there a way to remove a comment?
Imagine there are three status
No Trade waiting for right conditions
Long Trade
Short Trade
Lets say finishing a longtrade I want to remove its comment and write what ever the status is now
I have changed the Title to be same but that is not helping
Jepp i got this and use it often but there is a way to create custom blocks.
On the uper right side I can define the inputs for the block but how define the red and yellow output?
Is there any description how to do this?
Maybe there is something similiar to your NodeJs solution like that tool you used for "php to executable"