MACD Sample Expert Advisor in MetaTrader4 doesn't work - algorithmic-trading

The simple question is: Why doesn't MACD Sample work?
I wanted to use MACD sample EA (I mean the one which is provided by default in MetaTrader) to see if a MACD parameter works or not. I put my desired parameter in this part, instead of 12,26,9:
MacdCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
MacdPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
SignalCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
SignalPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1);
But I encounter a problem. When I started to backtest using 'Strategy Center', I found out the trade orders don't execute where I expect. Actually, I expect them to be executed in 'crossovers' between Signal line and MACD line. But it's not happening. I have tried to use 0MQ for sending trade orders from Python to MetaTrader, and I am desperate if I have to learn MQL for writing an expert advisor. I believe there is a quick solution to this problem.
Thank you for your attention, and thanks in advance a lot, for your kind answers.

Related

Comments added in Scenario Outline do not appear in HTML reports [duplicate]

I have noticed that commented lines in Scenario Outline do not appear in the HTML report steps even though this is not the case for regular Scenarios.
By any chance, is this intended or is it an overlooked bug?
I am aware that this issue is very minor and low in priority but it is helpful for cases like mine, whose lines of code can get a bit long. In-line comments help in documenting and separating blocks of code in my test scenarios.
Thanks in advance!
May be overlooked. This is certainly not a priority for the project developers, you are welcome to contribute code.
Custom reports can be easy if you know Java, refer: https://stackoverflow.com/a/66773839/143475
EDIT - at the very least, please submit a simple sample so that the problem is clear, following the instructions here: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

Internationalization-packages for Scene-Builder?

I saw the possibility to change the Internationalization of Scene Builder. But I did not find somewhere suitable language packages. May somebody of you have been faced by same kind of intention? For any hints in this matter I would be grateful.
With best regards
Peter
I checked by the way the possibility to change the language of the scene-builder-menu with use of google. The result of my investigation is: It is not possible to be done by a standard kind of user. Sorry, I did not expect this result. Anyway, I learned by. Thank you very much for the time an efforts you spend to bring me onto the right way to get an answer in regard to the question i did publish in before. Thank you.

How to get started posting a question with Stack Overflow?

I know this is going to sound extremely stupid but I honestly cannot figure out how to post a question I have here for a program I am trying to make.
Whenever I paste my code into the code section this website tells me I have not formatted correctly. I triple check everything and it is all perfectly formatted. It is strange though because my code ends up being halfway into the place where I am suppose to describe the issue. So I am definitely doing this wrong.
Would somebody please walk me through a simple tutorial so I can finally ask my questions?
Honor to help you, I think you can first learn how to use markdown.
And this is two useful tutorial I read when I am learning.
Perfect question : WRITING THE PERFECT QUESTION
Use Markdown effectively : Markdown Getting Started
As for the display of code you mention above, you can use triple ``` to surround the code like this
import math
print('hello world')

Pagination with Letters as index

I may have misunderstood what index is, after reading my question, you'll soon realize so please correct me if i was wrong. anyhow,
Is there any tutorial on paginating in codeigniter. Something that is simple and concise, i don't need complex ones since ill have hard time understanding the whole code.
A B C D
Ants
Airplane
Something like above, instead of number paging, would it be possible to paginate by first letters?
Ive encountered alot of sites that have these although im not sure if coding this would need any add-ons.
I think you have to build one. already this topic is disccused in CI forum.
Please check the forum link:
http://ellislab.com/forums/viewthread/164849/

How to make a power point presentation like this

maybe this is not the correct forum where to post this question, but i've serched for two weeks in the web, without results.
I need to make a kind of power point presentation, something like this - do know which program can i use?
Thank you
I think, that tool used for this prezentation can be find on
http://prezi.com/
This is called infographics and you can use website like visual.ly/
Then, you have to do your own effects

Resources