How to enable autotrading?
Hi
Indicators can't trade, only EA's can. If there is no code to open orders, it doesn't matter what you do, it won't open a trade. If you want to turn an indicator into an EA I suggest opening a job in the freelance section. And remember, if you do have an EA, you have to allow trading in both the MT options and in the EA options.
Hi
Indicators can't trade, only EA's can. If there is no code to open orders, it doesn't matter what you do, it won't open a trade. If you want to turn an indicator into an EA I suggest opening a job in the freelance section. And remember, if you do have an EA, you have to allow trading in both the MT options and in the EA options.
That's it! I want to change indicator to EA but I don't know how to do that. Compiler don't have options, it just compiles as it likes.
I dont know what exactly is your question. But perhaps you should use OnTick function (for EA) instead of OnCalculate (for Indicator). But you cant just replace that stuff. Usually coder use iCustom to use custom indicator to their EA code.
I succeeded to read indicator data with iCustom and CopyBuffer commands. I didn't find information about what index to use in CopyBuffer but with trials I did find that zero is exactly right one what you really see on chart! Then of course trading is allowed again. Thanks everybody!
I included Triple Exponential Moving Average (TEMA) indicator to my code and now all that code is compiled as indicator. When I attach it to chart then there are no question about autotrading. But I need it! How I can get that question (option) back? (Or change indicator to EA?)