EA BASED ON CCI AND STOCHASTIC
-
Hello everyone and fxdreema admin.
I m new on this forum and i speak french. So excuse me if my english is not so good.
I m wrinting a EA using 2 indicators on timeframe 1 hour.I would like to show you what I ve started to do by i dont know how to show you this. I have downloaded the software fxdreema
on my PC as so as to work even if i am disconnected, but in the menu, i dont find the way to share what I did.Please help me to realize my EA and check it. Many thanx
samdeka
-
Is there problem with this EA? I don't see the closing logic?
The local version is really local after logging in. But you can enter the web version and load some .mq4 file generated with the local, it will load the project itself.
-
__Is there problem with this EA? I don't see the closing logic?
The local version is really local after logging in. But you can enter the web version and load some .mq4 file generated with the local, it will load the project itself.[/quote:jeirvlk4]
Thank you fxDreema admin for your quick response. I will add the closing logic and try to load the .mq4 file.
Thanx. -
I think you want to build one of these:
No buys => Condition to Buy => Close all (or only Sells) => Sell
No sells => Condition to Sell => Close all (or only Buys) => BuyWell, this is useful if conditions to buy/sell are the same with the conditions to close. If you want to close your trades after very different conditions, then:
If trade is running (or the yellow out of No trade...) => Condition to close => Close trades
-
__I think you want to build one of these:
No buys => Condition to Buy => Close all (or only Sells) => Sell
No sells => Condition to Sell => Close all (or only Buys) => BuyWell, this is useful if conditions to buy/sell are the same with the conditions to close. If you want to close your trades after very different conditions, then:
If trade is running (or the yellow out of No trade...) => Condition to close => Close trades[/quote:31941o35]
Thank you fxDreema admin.
I would like to show you the algorigram I have just did (attached file).
I want to share the file in order you can access to the parameters, but I dont know how to load the file from de PC
version to the web fxdreema version. May you show me the right way to load the file from PC to web version?
Please find attached the picture of what I did.
Thanx again for your support. -
Ok, there is something you are missing here. I described it in this example: https://fxdreema.com/demo/mt4-wrong-closing-rule
In short, no block stuck and wait unlimited amount of time waiting for the right conditions to pass. Many people thing this is the way an EA should be build and they connect everything from the beginning to the end in that fashion, like "No trade => Condition to buy => Buy => Condition to close => Close". This is not the case here, check the link above

Break connections after Buy now and Sell now. "Once per tick" is not needed.
-
__Ok, there is something you are missing here. I described it in this example: https://fxdreema.com/demo/mt4-wrong-closing-rule
In short, no block stuck and wait unlimited amount of time waiting for the right conditions to pass. Many people thing this is the way an EA should be build and they connect everything from the beginning to the end in that fashion, like "No trade => Condition to buy => Buy => Condition to close => Close". This is not the case here, check the link above

Break connections after Buy now and Sell now. "Once per tick" is not needed.[/quote:3owekexj]
Thank you very much. I will modify the structure.
I tried to share the file from the PC to the web platform, in case you can check in the parameters are right, but i cant do it.
Please, how can I do it?
Thanks again. -
It's all in the Projects menu. Load some .mq4 or .xml file previously generated with fxDreema.
-
__It's all in the Projects menu. Load some .mq4 or .xml file previously generated with fxDreema.[/quote:gn1kyh8c]
Thanx fxDreema.
I tried to load the mq4 file from the destining folder, but first fxdreema has not generate a mq4 or
xml file but a fxdb file. Second, it seems that my EA has more than 10 connections on it, so fxdreema cant export
the project from the PC to the web. Maybe I should definitely build my EA on the web platform...
Anyway, please find attached my new EA building. Am I on the right way before going deeper?
Thanx again for your support.
-
____It's all in the Projects menu. Load some .mq4 or .xml file previously generated with fxDreema.[/quote:3s2y6lkb]
Thanx fxDreema.
I tried to load the mq4 file from the destining folder, but first fxdreema has not generate a mq4 or
xml file but a fxdb file. Second, it seems that my EA has more than 10 connections on it, so fxdreema cant export
the project from the PC to the web. Maybe I should definitely build my EA on the web platform...
Anyway, please find attached my new EA building. Am I on the right way before going deeper?
Thanx again for your support.[/quote:3s2y6lkb]
I have attached too the picture of some parameters of CCI and stochastic
according to my trade logic.
Thanx. -
Don't look at the fxDreema/Data subfolder, these are only database files, not output files. .mq4 files are generated with .mq4 button, or .xml files from Projects menu. Well, I can also read the .fxdb file, but this does not matter, I can see the general problem, whish is the one I pointed above.
Again, no block waits until it passes. Your blocks 11, 18, 14 and 15 are executed rarely. Just break those connections from 8 and 10 and they will start working. In short, your closing rule does not work. Check the example again: https://fxdreema.com/demo/mt4-wrong-closing-rule
About the opening rule... I'm a little bit lazy to check it on MT4, but I can suggest what you can do in this situation. here we want to execute Buy now or Sell now, right? So you want to know if these blocks are executed at all. Just put "Draw arrow" block after 3, after 4, after 7... to understant if these blocks are working correctly and whether it's possible Buy now to be executed at all. If Buy now is executed but you have no trade on the chart, then look at the error messages, it's probably something wrong with SL or TP.
To know about indicators or any other numeric levels, use "indicator tester" block. It's one of my favorites

-
__Don't look at the fxDreema/Data subfolder, these are only database files, not output files. .mq4 files are generated with .mq4 button, or .xml files from Projects menu. Well, I can also read the .fxdb file, but this does not matter, I can see the general problem, whish is the one I pointed above.
Again, no block waits until it passes. Your blocks 11, 18, 14 and 15 are executed rarely. Just break those connections from 8 and 10 and they will start working. In short, your closing rule does not work. Check the example again: https://fxdreema.com/demo/mt4-wrong-closing-rule
About the opening rule... I'm a little bit lazy to check it on MT4, but I can suggest what you can do in this situation. here we want to execute Buy now or Sell now, right? So you want to know if these blocks are executed at all. Just put "Draw arrow" block after 3, after 4, after 7... to understant if these blocks are working correctly and whether it's possible Buy now to be executed at all. If Buy now is executed but you have no trade on the chart, then look at the error messages, it's probably something wrong with SL or TP.
To know about indicators or any other numeric levels, use "indicator tester" block. It's one of my favorites :)[/quote:2qr8btv9]
Thanx FxDreema for your response.
As you advised me, I rebuild my EA by disconnecting the blocks. Please find attached the new one with the parameters of Buy and Sell Now
(as I cant still shared the file online). Is this logic fine now (before going deeper
)?
Thanx -
The comment for the Byt trade should be something like "Long trade" or whatever that is for a Buy trade. Well, this is optional.
I looks ok, but I can't be sure. Check it to see. Again, use "Draw arrow" to see where a block passes, use "Comment on chart" to print some data, or "Indicator tester" to print the history of some value. Use "Delay" to pause the EA (there are options also for backtesting, these require dll import) - you can pause when a new trade is created, so you can observe the situation at that moment very closely. -
__The comment for the Byt trade should be something like "Long trade" or whatever that is for a Buy trade. Well, this is optional.
I looks ok, but I can't be sure. Check it to see. Again, use "Draw arrow" to see where a block passes, use "Comment on chart" to print some data, or "Indicator tester" to print the history of some value. Use "Delay" to pause the EA (there are options also for backtesting, these require dll import) - you can pause when a new trade is created, so you can observe the situation at that moment very closely.[/quote:2aimrh23]Thank you fxDreema.
I think now that I am on the right way.
Please can you show some example of the using of "Draw arrow", "Comment on chart", "Indicator tester" and "Delay".
As you know I dont master really programming with fxdreema platform. These examples will be useful.
An other problem that I jave to cope with is about complilation. My EA has more than 10 connections.
So I will buid a new one with less than 10 connections, so you could easily help me to be familiar with
compilation, debugging, etc.
Thanx again. -
Hello Fxdreema.
As I told you, I ha built a new simple EA which is easier to manage and make the different tests.
I show you attached, the new build and some parameters.
The ea should work on timeframe 4 hours on the chart, and buy when CCI is over 100 and sell when CCI is brlow -100.
The closing rule is the opposite of the one overquoted.
I will add as you advise me draw arrow and comment on chart to display message during testing demo.
At this level I have also a serious problem becoz when I export to .mq4, no export mq4 file is generated in the destining
folder. Can you help me to solve this problem of mq4 export?
Thanx -
These blocks like "Draw arrow" are to be used when you have some problem and you don't know what is it, or to know where you are and what is going on. If you know what the word debugging means
At least I'm doing everything that way - I do something small, then check if it's working... then I add another one and I check again...Now block 9 can be executed twice in a tick. If that is not problem, fine. What happens now is that block 7 is executed and if it's condition is right - block 9 is executed. And then block 8 is executed and if it's condition is right block 9 is executed again. So, if you want true OR, use the OR block... there is an example somewhere in http://fxdreema.com/examples
-
Thanx for your response.
I will try my best to built one properly that I will show you soon.
But my real problem is that I dont find the export .mq4 file in order
to compile and make any debugging
.
Please help me to solve this cute problem.
thanx -
Oops, I forgot that. You can read the topic here in this forum which is on the top - Where is my .ex4 file? I can't answer in one word because it depends on Windows version and MetaTrader version, and also on fxDreema version (so use the latest).
-
__Oops, I forgot that. You can read the topic here in this forum which is on the top - Where is my .ex4 file? I can't answer in one word because it depends on Windows version and MetaTrader version, and also on fxDreema version (so use the latest).[/quote:3gup09x0]
Thanx again. I will tru it!