-
Notifications
You must be signed in to change notification settings - Fork 3.9k
All of the strategies are calculated wrong #989
Comments
I wrote my strategy both in JS and in Pine Script (so I can see it work on tradingview.com). Just one single strategy. And I can already say that your statement in this title is simply incorrect. My strategy is calculated 100% correctly. Which means that you need to be more specific as to what you're seeing. Also, RTFM. If your expected result is profit and you consider not getting it to be a bug, you clearly didn't. :-) |
@pelletencate the DEMA strategy, what are you trying to do here? No offense but its nothing man. Let's be honest - this is profitable for you? I am creating expert advisors for MT4 for several years, and the way these strats are made are interesting - quiet different really. But I do not see them making any profit :) |
In pseudo we need the equivalent of:
Detection of just |
Looking at the dema example I don't see how this can ever could work really. So If the trend is up we buy, and if its down we close. That's really working?
|
As the docs say, they're example strategies. If you have ideas on how to improve them, submit a PR! We'd love to see the results. |
Ok, if that's cool I will do just that then! Like the cci and macd examples, this is not how we use these indicators. I am a technical analyst and honestly guys this just will not profit. You need to calculate crosses. First thing we need is a function for
|
Additionally you will need a trail stop method, you can't just jump out of the trade because slope changed (these algorithms are just slope based trends) Some indicators like MACD are wide ranging meaning looking for a upper threshold is futile between instruments e.g during a rally macd may extent to high 300 numbers, so setting 100 as a top would be impractical in that setting. This is why it's best to monitor divergence via a cross in my experience. |
Strategies don't calculate anything, they are just wrappers around indicators that signal based on calculated output. As stated above, they are merely examples.
All these things have 0 to do with any calculations and are just your opinion. As stated above the strategies that come with Gekko are simple examples. Gekko is a framework to build your own strategies. |
I'm a rocket scientist. Gekko wont take you to the moon. Have a great day. |
@tomtom87 Have the same opinion. Perhaps a better set of example strategies is what we need. |
You are more than welcome to submit a PR for a strategy.
On 21 Sep 2017 19:44, "AdityaNayak" <notifications@github.com> wrote:
@tomtom87 <https://github.com/tomtom87> Have the same opinion. Perhaps a
better set of example strategies is what we need.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#989 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7MDwS-35qDdqkOlZVV_PccCmaO9NtBks5skqBcgaJpZM4O5p8Y>
.
|
Yes, will do. Trying to get to my first profitable strategy at the moment. @askmike Awesome job with the bot so far. It is rare to find such good documentation. |
Im already profit in my algorithm and very busy to write one for you.
Just wanted to let you guys know why this looses money. Best you read technical indicators from the CFTe course and learn how each works.
You do slope calculations and spread - its total fubar in real trading we dont do it like that. Also your code is one way only bull market you cannot short. So really its like gunbot but doesnt work.
At least code a real MA strat you can make a few pips a trade that way.
Good luck
… On 22 Sep 2017, at 00:46, Mike van Rossum ***@***.***> wrote:
You are more than welcome to submit a PR for a strategy.
On 21 Sep 2017 19:44, "AdityaNayak" ***@***.***> wrote:
@tomtom87 <https://github.com/tomtom87> Have the same opinion. Perhaps a
better set of example strategies is what we need.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#989 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7MDwS-35qDdqkOlZVV_PccCmaO9NtBks5skqBcgaJpZM4O5p8Y>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Note: for support questions, please join our Discord server
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Action taken (what you did)
Used Gekko
Expected result (what you hoped would happen)
Profit money
Actual result (unexpected outcome)
Lost money
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)
A cross is detected by 3 sample points traditionally in algorithm trading. You would benefit from looking at working algorithms and writing them into your JS from MQL4 for example.
Without giving away too much, the reason these strategies constantly loose is they are not trading how these strategies should they are just nonsense.
First of all try to make the golden cross / death cross strat with a trailing ATR based stop.
The text was updated successfully, but these errors were encountered: