Implementing strategy based on arrow-type indicator code and integrate with Multi strategy #389
-
Hello Kenorb I would like to thank you for the EA31337 source code updates. I have integrated the Meta Multi Strategy that you published earlier into the system and compiled it successfully right now. Code:
As you can see above, the Moving average and ATR indicator are used. I want to combine it with the Meta Multi strategy and create the startup in my mind. 1 - Thank you, I wish you good work. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Hi, Kenorb . I figured out how to create my manual strategy. Just how can I close the reverse position. I've scanned all the source code you've written. I also understood all the necessary functions and parameters. I just couldn't figure out how to interfere with the close filters to close the reverse position and add the function. Is it okay if I start with close filters? Will you show me the way? Thanks |
Beta Was this translation helpful? Give feedback.
-
To implement indicator into strategy, what I did are these steps:
Initially I've tried this condition for signal for buy: The aim of this Arrows strategy is to be generic handler for these type of arrow-type indicators, as I don't want to end up with hundreds of cloned strategies basically doing the same, and using generic strategy the same signal logic can be re-used for other. You can extend it or propose fixes if you like it. Or use as the example to design your own unique strategy. |
Beta Was this translation helpful? Give feedback.
-
Hello, Kenorb. Thank you so much for sharing the very valuable source code for us. I think they may have directly tested the source code you shared and touted the robot as bad because they didn't succeed. There is a great intelligence in the robot. and I tried for 6 months to figure it out, and I may have solved almost the entire system. I have successfully integrated the ATR Ma slope indicator into the master source code, which is the latest version, and it is working successfully. You can check it out if you want. I can share with you whether I did right or wrong. I just have a question that's been bothering me. How can I use 60 lwma and 240 lwma values simultaneously at multiple times using the moving average indicator. ? For example, I want to use 240 lwma and 60 lwma on the daily chart, while using 20 ema on the hourly chart. The situation that should be considered here is that when I call the moving average strategy, there are both different periods and different parameters. When I review the source code, the constructor is called 1 time when sending parameters to the moving average indicator. do I need to call more than one constructor for different parameters and different periods. I have created a special vip strategy for myself. i have successfully entered the atr ma slope in it, but for the moving average I can only integrate it for the current time period, but how can I enter different time periods and different parameters into the moving average strategy for the 4-hour and daily chart. Can you give me an example with 1-2 lines of code? Thank you very much |
Beta Was this translation helpful? Give feedback.
dblTma
, its value needs to be exposed through the external buffer. Same way what you've for Slope[], Long[], Short[] and Flat[]. These array variables are set as buffer viaSetIndexBuffer()
so they can be accessible from EA for the given index mode.Indi_ATR
to communicate with platform builtin ATR indicator (::iATR
) to read its buffers. In MT5 platform you can find the source code of ATR in Indicators/Examples directory, where you will find the values are assigned to array variables and usingSetIndexBuffer()
you're informing platform that this value can be read externally (e.g. in …