Find out Candle ID of drawn rectangles
-
Hello,
I have an indicator drawing rectangles on the chart.
Now, lets say we have 8 rectangles on the Chart. I have Object names for all of them.
Information on the rectangle is Price Level 1 and Price Level 2.Now, Rectangles are always drawn around lets say a specific High of a Candle or a specific low.
So Price Level 1 of an object (called by object name) will always be equal to a candle high, or a candle low.So lets take a specific candle high somewhere in the past. This is a point where a rectangle was drawn from some candle high to some candle low.
How can I find out the Candle ID of the Candle High that was used to create that rectangle? So all I know is that candle high equals price level 1 of the rectangle. And I have the object name of this rectangle.Would need to put that Candle ID in a variable. Thanks
ezzakt
-
I found problem with Time 1 attribute, so don't try it, I will upload a new local build later...(have to do something now).
-
great
-
Ready (http://fxdreema.com/desktop). You will find "Candle ID 1", "Candle ID 2" and "Candle ID 3" attributes right after Price 1, 2 and 3 attributes.
-
amazing, sound exactly as what I need

Will go ahead and try it this morning
-
Ok there seems to be some kind of issue with the update I assume
What I did:
I am sitting at a different PC than my home pc. so this morning before I left I copied an xml file of the current project to a stick.
On the PC I am right now I started the new build, which prompted to update the database. Update was done.Then after starting fxdreema again I imported the XML file, which was created by the old build actually.
After this I cannot compile this version anymore. Its always the same errorScreenshot 1
http://prntscr.com/1nh2ydScreenshot 2 shows information in a block. That block actually should contain information to compare a boolean value to true but does actually contain something very different
http://prntscr.com/1nh3f2So it seems the blocks are corrupted

Is this due to my import of the old XML after the update?
-
Another information, looks like every block contains only Account Information on the left and right side, no matter its a formula, condition block or something else
-
Damn, those .xml files are database files after all, and I forgot to work with them...
-
I changed the way information is recorded for Condition block. And all the things I've done in the last month was about this block and all the tools inside it. And by the way, I think there will be more database-structure-modifications in the future
This is because when I started this project, I was not so experienced as a programmer, and then I reached the point where I was lost in my own messy spaghetti code... so I started to rewrite things, and I'm not finished 
046 is out... I hope it will do it.
-
oh, you already got it fixed. Thought this would take you longer to do

Just tested it and it looks all ok now again, great work
-
Hmm one more strange thing.
Just did an export mq4 and ex4 of an ea. After testing (a working version, no changes) in MT4 it works afew seconds and then I receive a Zero Divide in the journal of MT4, stopping the EA.
Also, somehow I can see a different file size when exporting the EX4 from FXdreema and by compiling in Metaeditor.
If done in Metaeditor, file size is 180 KB, compiling by FXDreema results in 210KB.
Anyway, both ex4 files return the zero divide in logs.As it is compiling OK I am unsure what I can do to find out about the error ?
Can you help me? -
fyi, EA uses 1 imported custom indicator. But I see in the first candles the indi works and stops after the zero divide
-
Zero Divide happens if the EA works with different symbol, not the current. Or at least I don't know other situation or exact block that can can cause it... but as we know that some of the things are updated, it's possible. If you can understand which block causes that...?

Those things about the size of ex4 file - I get different file size every time I click on "Compile" in MetaEditor. I think it's because every time it uses different encoding rules in order to stop people who are trying to decompile .ex4 files.
fxDreema uses the same compiler (metalang.exe), so the result is the same. I got file sizes between 81kb and 94kb of one EA that I just tested. -
OK I see. actually the EA has not set any specific pair so I do not think the error is related to this. I think (if I remember correct) I had a Zero divide in the past when some input variable or some formula lead to a not-OK calculation or so....
But as I have 440 Blocks in this EA its not that easy to find out

Is there anything I can do to enhance logging on where that Zero Divide occurs ?
I guess not because its fully compiled at that point...About the filesize:
Ah ok, that sound reasonable -
Zero divide is what it says - something is divided by 0. It can be from your calculation (Formula, Variables...) or something in the code that is created by me... but unfortunately I don't have an idea where it can be wrong. I hoped that MT4 can say the exact row of the code where the error is (and it does that with other types of error messages), but as I can see Zero divide error lacks of additional data. So now what can be done is to turn off some block - try - turn off another block - try - and so on... until it starts to work.
I can also suggest TeamViewer - I can see it right in your PC and I can probably detect the problem faster. Also I have to go somewhere after minutes

-
On another EA I can see its calculating SL and TP sizes wrong now. Ohoh
